-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIEnergyCell.java
34 lines (31 loc) · 938 Bytes
/
IEnergyCell.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package DrummerMC.Extra_Stuff.Api;
import appeng.api.config.Actionable;
import DrummerMC.Extra_Stuff.Api.Util.EnergyType;
import net.minecraft.item.ItemStack;
public interface IEnergyCell {
/**
*
* @param is
* @return the stored Energy
*/
public double getEnergy(ItemStack is, EnergyType type, String ChannelName);
/**
*
* @param is
* @return the max amount of energy that can stored
*/
public double getMaxEnergy(ItemStack is, EnergyType type, String ChannelName);
/**
*
* @param is
* @return the amount of energy that cant added
*/
public double addEnergy(ItemStack is, EnergyType type, String ChannelName, double amount, Actionable action);
/**
*
* @param is
* @return the amount of Energy that was removed
*/
public double removeEnergy(ItemStack is, EnergyType type, String ChannelName, double amount, Actionable action);
public boolean useDefaultEnergyStorageHandler(ItemStack is);
}