Update build file to 1.9, use Cofh API.

This commit is contained in:
Raoul Van den Berge
2016-03-19 13:38:25 +01:00
parent 506f6a6eba
commit f5e24fcbb6
13 changed files with 86 additions and 98 deletions

View File

@@ -11,7 +11,7 @@ import net.minecraft.util.EnumFacing;
* @author King Lemming
*
*/
public interface IEnergyReceiver extends IEnergyConnection {
public interface IEnergyReceiver extends IEnergyHandler {
/**
* Add energy to an IEnergyReceiver, internal distribution is left entirely to the IEnergyReceiver.
@@ -24,16 +24,6 @@ public interface IEnergyReceiver extends IEnergyConnection {
* If TRUE, the charge will only be simulated.
* @return Amount of energy that was (or would have been, if simulated) received.
*/
int receiveEnergy(EnumFacing facing, int maxReceive, boolean simulate);
/**
* Returns the amount of energy currently stored.
*/
int getEnergyStored(EnumFacing facing);
/**
* Returns the maximum amount of energy that can be stored.
*/
int getMaxEnergyStored(EnumFacing facing);
int receiveEnergy(EnumFacing from, int maxReceive, boolean simulate);
}