Class IngredientComponentStorageWrapperHandlerEnergyStorage.EnergyStorageWrapper

java.lang.Object
org.cyclops.commoncapabilities.ingredient.storage.IngredientComponentStorageWrapperHandlerEnergyStorage.EnergyStorageWrapper
All Implemented Interfaces:
net.neoforged.neoforge.energy.IEnergyStorage
Enclosing class:
IngredientComponentStorageWrapperHandlerEnergyStorage<C>

public static class IngredientComponentStorageWrapperHandlerEnergyStorage.EnergyStorageWrapper extends Object implements net.neoforged.neoforge.energy.IEnergyStorage
  • Constructor Details

  • Method Details

    • receiveEnergy

      public int receiveEnergy(int maxReceive, boolean simulate)
      Specified by:
      receiveEnergy in interface net.neoforged.neoforge.energy.IEnergyStorage
    • extractEnergy

      public int extractEnergy(int maxExtract, boolean simulate)
      Specified by:
      extractEnergy in interface net.neoforged.neoforge.energy.IEnergyStorage
    • getEnergyStored

      public int getEnergyStored()
      Specified by:
      getEnergyStored in interface net.neoforged.neoforge.energy.IEnergyStorage
    • getMaxEnergyStored

      public int getMaxEnergyStored()
      Specified by:
      getMaxEnergyStored in interface net.neoforged.neoforge.energy.IEnergyStorage
    • canExtract

      public boolean canExtract()
      Specified by:
      canExtract in interface net.neoforged.neoforge.energy.IEnergyStorage
    • canReceive

      public boolean canReceive()
      Specified by:
      canReceive in interface net.neoforged.neoforge.energy.IEnergyStorage