Interface LongEnergyStorage

All Superinterfaces:
net.minecraftforge.energy.IEnergyStorage

public interface LongEnergyStorage extends net.minecraftforge.energy.IEnergyStorage
An IEnergyStorage that allows storing the energy value as long.
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Gets the long energy stored best represented as an int.
    long
    Gets the energy stored as a long.
    long
    Gets the maximum energy stored as a long.
    default int
    Gets the long maximum energy stored best represented as an int.

    Methods inherited from interface net.minecraftforge.energy.IEnergyStorage

    canExtract, canReceive, extractEnergy, receiveEnergy
  • Method Details

    • getEnergyStored

      default int getEnergyStored()
      Gets the long energy stored best represented as an int. This uses LongAmountToIntUtil.
      Specified by:
      getEnergyStored in interface net.minecraftforge.energy.IEnergyStorage
    • getMaxEnergyStored

      default int getMaxEnergyStored()
      Gets the long maximum energy stored best represented as an int. This uses LongAmountToIntUtil.
      Specified by:
      getMaxEnergyStored in interface net.minecraftforge.energy.IEnergyStorage
    • getLongEnergyStored

      long getLongEnergyStored()
      Gets the energy stored as a long.
    • getLongMaxEnergyStored

      long getLongMaxEnergyStored()
      Gets the maximum energy stored as a long.