Files
EnderIO/common/appeng/api/me/items/IAEChargeableItem.java
T
2014-02-13 14:01:40 +08:00

26 lines
587 B
Java

package appeng.api.me.items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
/*
* A simple AE interface used internally for PowerRelay charging.
*/
public interface IAEChargeableItem {
/*
* Return the amount of energy not used.
*
* if you return the same amount out, as was passed in, then it will consider charging done.
*
*/
public float addEnergy( ItemStack target, float energy );
/*
* Must return true for the target item for it to be considered a charageable item.
*/
public boolean isChargeable( ItemStack it );
}