Interface IAEItemPowerStorage


public interface IAEItemPowerStorage
Basically the same as IAEPowerStorage, but for items.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    extractAEPower(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.
    double
    getAECurrentPower(net.minecraft.world.item.ItemStack stack)
     
    double
    getAEMaxPower(net.minecraft.world.item.ItemStack stack)
     
    double
    getChargeRate(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!
    double
    injectAEPower(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

      double injectAEPower(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.
      Returns:
      amount unable to be stored
    • extractAEPower

      double extractAEPower(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.
      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

      AccessRestriction getPowerFlow(net.minecraft.world.item.ItemStack stack)
      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.