<commit_before><commit_msg>Adding PowerProvider for BC<commit_after>package erogenousbeef.core.power.buildcraft;

import net.minecraftforge.common.ForgeDirection;
import buildcraft.api.power.IPowerReceptor;
import buildcraft.api.power.PowerProvider;

/**
 * Shamelessly cribbed from Powercrystals.
 */
public class PowerProviderBeef extends PowerProvider {

	public PowerProviderBeef()
    {
        powerLoss = 0;
        powerLossRegularity = 72000;

        configure(0, 0);
    }

    public void configure(int maxEnergyReceived, int maxStoredEnergy)
    {
        super.configure(0, 0, maxEnergyReceived, 0, maxStoredEnergy);
    }

    @Override
    public boolean update(IPowerReceptor receptor)
    {
        return false;
    }

    @Override
    public void receiveEnergy(float quantity, ForgeDirection from)
    {
        energyStored += quantity;

        if (energyStored > maxEnergyStored)
        {
            energyStored = maxEnergyStored;
        }
    }
}

{'fraction_non_alphanumeric': 0.07991803278688525, 'fraction_numerical': 0.011270491803278689, 'mean_word_length': 3.0040983606557377, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5524589', 'n_tokens_mistral': 309, 'n_tokens_neox': 278, 'n_words': 60}