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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
int
extractEnergy
(int maxExtract, boolean simulate) int
int
int
receiveEnergy
(int maxReceive, boolean simulate)
-
Constructor Details
-
EnergyStorageWrapper
-
-
Method Details
-
receiveEnergy
public int receiveEnergy(int maxReceive, boolean simulate) - Specified by:
receiveEnergy
in interfacenet.neoforged.neoforge.energy.IEnergyStorage
-
extractEnergy
public int extractEnergy(int maxExtract, boolean simulate) - Specified by:
extractEnergy
in interfacenet.neoforged.neoforge.energy.IEnergyStorage
-
getEnergyStored
public int getEnergyStored()- Specified by:
getEnergyStored
in interfacenet.neoforged.neoforge.energy.IEnergyStorage
-
getMaxEnergyStored
public int getMaxEnergyStored()- Specified by:
getMaxEnergyStored
in interfacenet.neoforged.neoforge.energy.IEnergyStorage
-
canExtract
public boolean canExtract()- Specified by:
canExtract
in interfacenet.neoforged.neoforge.energy.IEnergyStorage
-
canReceive
public boolean canReceive()- Specified by:
canReceive
in interfacenet.neoforged.neoforge.energy.IEnergyStorage
-