<commit_before>package zmaster587.advancedRocketry.tile;

import java.util.List;

import net.minecraft.entity.player.EntityPlayer;
import zmaster587.libVulpes.inventory.TextureResources;
import zmaster587.libVulpes.inventory.modules.ModuleBase;
import zmaster587.libVulpes.inventory.modules.ModuleProgress;
import zmaster587.libVulpes.inventory.modules.ModuleSlotArray;
import zmaster587.libVulpes.inventory.modules.ModuleText;
import zmaster587.libVulpes.tile.TileInventoriedForgePowerMachine;

public class TileSolarPanel extends TileInventoriedForgePowerMachine {

	int powerPerTick;
	ModuleText text;
	
	public TileSolarPanel() {
		super(10000, 1);
		powerPerTick = 1;
		text = new ModuleText(60, 40, "Collecting Energy", 0x2f2f2f);
	}
	
	@Override
	public boolean canGeneratePower() {
		return worldObj.canBlockSeeSky(this.pos) && worldObj.isDaytime();
	}

	@Override
	public void update() {
		if(canGeneratePower()) {
			if(worldObj.isRemote)
				text.setText("Collecting Energy:\n" + powerPerTick + " RF/t");
			if(hasEnoughEnergyBuffer(getPowerPerOperation())) {
				if(!worldObj.isRemote) this.energy.acceptEnergy(getPowerPerOperation(), false);
				onGeneratePower();
			}
			else
				notEnoughBufferForFunction();
		}
		else if(worldObj.isRemote)
			text.setText("Unable to collect Energy");
	}<commit_msg>solar generator should now output power.  See #329<commit_after>package zmaster587.advancedRocketry.tile;

import java.util.List;

import net.minecraft.entity.player.EntityPlayer;
import zmaster587.libVulpes.inventory.TextureResources;
import zmaster587.libVulpes.inventory.modules.ModuleBase;
import zmaster587.libVulpes.inventory.modules.ModuleProgress;
import zmaster587.libVulpes.inventory.modules.ModuleSlotArray;
import zmaster587.libVulpes.inventory.modules.ModuleText;
import zmaster587.libVulpes.tile.TileInventoriedForgePowerMachine;

public class TileSolarPanel extends TileInventoriedForgePowerMachine {

	int powerPerTick;
	ModuleText text;
	
	public TileSolarPanel() {
		super(10000, 1);
		powerPerTick = 1;
		text = new ModuleText(60, 40, "Collecting Energy", 0x2f2f2f);
	}
	
	@Override
	public boolean canGeneratePower() {
		return worldObj.canBlockSeeSky(this.pos) && worldObj.isDaytime();
	}

	@Override
	public void update() {
		if(canGeneratePower()) {
			if(worldObj.isRemote)
				text.setText("Collecting Energy:\n" + powerPerTick + " RF/t");
			if(hasEnoughEnergyBuffer(getPowerPerOperation())) {
				if(!worldObj.isRemote) this.energy.acceptEnergy(getPowerPerOperation(), false);
				onGeneratePower();
			}
			else
				notEnoughBufferForFunction();
		}
		else if(worldObj.isRemote)
			text.setText("Unable to collect Energy");
		transmitPower();
	}
{'fraction_non_alphanumeric': 0.1066914498141264, 'fraction_numerical': 0.027881040892193308, 'mean_word_length': 5.778337531486146, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '138839', 'n_tokens_mistral': 1005, 'n_tokens_neox': 876, 'n_words': 148}