public interface Chargeable
Modifier and Type | Method and Description |
---|---|
boolean |
canCharge(net.minecraft.item.ItemStack stack)
Whether the specified item stack can be charged.
|
double |
charge(net.minecraft.item.ItemStack stack,
double amount,
boolean simulate)
Called when checking if an item can be charged or should be charged.
|
boolean canCharge(net.minecraft.item.ItemStack stack)
stack
- the stack to check for.double charge(net.minecraft.item.ItemStack stack, double amount, boolean simulate)
stack
- the item to charge.amount
- the amount to inject into the item.simulate
- whether to only simulate injection.