Package appeng.api.implementations.items
Interface IAEItemPowerStorage
public interface IAEItemPowerStorage
Basically the same as
IAEPowerStorage, but for items.-
Method Summary
Modifier and TypeMethodDescriptiondoubleextractAEPower(net.minecraft.world.item.ItemStack stack, double amount, Actionable mode) Attempt to extract power from the device, it will extract what it can and return it.doublegetAECurrentPower(net.minecraft.world.item.ItemStack stack) doublegetAEMaxPower(net.minecraft.world.item.ItemStack stack) doublegetChargeRate(net.minecraft.world.item.ItemStack stack) getPowerFlow(net.minecraft.world.item.ItemStack stack) Control the power flow by telling what the network can do, either add? or subtract? or both!doubleinjectAEPower(net.minecraft.world.item.ItemStack stack, double amount, Actionable mode) Inject amt, power into the device, it will store what it can, and return the amount unable to be stored.
-
Method Details
-
injectAEPower
Inject amt, power into the device, it will store what it can, and return the amount unable to be stored.- Returns:
- amount unable to be stored
-
extractAEPower
Attempt to extract power from the device, it will extract what it can and return it.- Parameters:
amount- to be extracted power from device- Returns:
- what it could extract
-
getAEMaxPower
double getAEMaxPower(net.minecraft.world.item.ItemStack stack) - Returns:
- the current maximum power ( this can change :P )
-
getAECurrentPower
double getAECurrentPower(net.minecraft.world.item.ItemStack stack) - Returns:
- the current AE Power Level, this may exceed getMEMaxPower()
-
getPowerFlow
Control the power flow by telling what the network can do, either add? or subtract? or both!- Returns:
- access restriction of network
-
getChargeRate
double getChargeRate(net.minecraft.world.item.ItemStack stack) - Returns:
- The amount of AE per tick that the AE charger will charge this item at.
-