Implemented the other apis, now need to implement our own

This commit is contained in:
modmuss50 2015-07-01 17:23:29 +01:00
parent c836e06678
commit 78faca7a19
2 changed files with 197 additions and 23 deletions

View file

@ -41,6 +41,16 @@ public interface IEnergyInterfaceTile {
*/
public int addEnergy(int energy);
/**
*
* Will try add add the full amount of energy, if simulate is true it wont add the energy
*
* @param energy amount to add
*
* @return The amount of energy that was added.
*/
public int addEnergy(int energy, boolean simulate);
/**
* Returns true if it can use the full amount of energy
*
@ -55,9 +65,19 @@ public interface IEnergyInterfaceTile {
*
* @param energy energy to use
*
* @return if the energy was used
* @return the amount of energy used
*/
public boolean useEnergy(int energy);
public int useEnergy(int energy);
/**
* Will try and use the full amount of energy, if simulate is true it wont add the energy
*
* @param energy energy to use
*
* @return the amount of energy used
*/
public int useEnergy(int energy, boolean simulate);
/**
*