mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-25 22:44:34 +00:00
26 lines
587 B
Java
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 );
|
|
|
|
}
|