mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-21 20:42:17 +00:00
42 lines
982 B
Java
42 lines
982 B
Java
package buildcraft.api.power;
|
|
|
|
import buildcraft.api.core.Orientations;
|
|
import buildcraft.api.core.SafeTimeTracker;
|
|
import net.minecraft.src.NBTTagCompound;
|
|
|
|
public interface IPowerProvider {
|
|
|
|
int getLatency();
|
|
|
|
int getMinEnergyReceived();
|
|
|
|
int getMaxEnergyReceived();
|
|
|
|
int getMaxEnergyStored();
|
|
|
|
int getActivationEnergy();
|
|
|
|
float getEnergyStored();
|
|
|
|
void configure(int latency, int minEnergyReceived, int maxEnergyReceived, int minActivationEnergy, int maxStoredEnergy);
|
|
|
|
void configurePowerPerdition(int powerLoss, int powerLossRegularity);
|
|
|
|
boolean update(IPowerReceptor receptor);
|
|
|
|
boolean preConditions(IPowerReceptor receptor);
|
|
|
|
float useEnergy(float min, float max, boolean doUse);
|
|
|
|
void readFromNBT(NBTTagCompound nbttagcompound);
|
|
|
|
void writeToNBT(NBTTagCompound nbttagcompound);
|
|
|
|
void receiveEnergy(float quantity, Orientations from);
|
|
|
|
boolean isPowerSource(Orientations from);
|
|
|
|
SafeTimeTracker getTimeTracker();
|
|
|
|
}
|