Class HTMachineEnergyBattery.Processor
-
- All Implemented Interfaces:
-
hiiragi283.core.api.HTContentListener,hiiragi283.core.api.serialization.value.HTValueSerializable,hiiragi283.core.api.storage.amount.HTAmountSlot,hiiragi283.core.api.storage.amount.HTAmountView,hiiragi283.core.api.storage.energy.HTEnergyBattery,java.lang.Runnable,net.neoforged.neoforge.common.util.INBTSerializable
public final class HTMachineEnergyBattery.Processor extends HTMachineEnergyBattery<HTProcessorBlockEntity>
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerbaseEnergyPerTickprivate final HTProcessorBlockEntityblockEntityprivate IntegercurrentEnergyPerTick
-
Constructor Summary
Constructors Constructor Description HTMachineEnergyBattery.Processor(HTEnergyConfig config, HTContentListener listener, HTProcessorBlockEntity blockEntity)
-
Method Summary
Modifier and Type Method Description final IntegergetBaseEnergyPerTick()final HTProcessorBlockEntitygetBlockEntity()final IntegergetCurrentEnergyPerTick()final UnitsetCurrentEnergyPerTick(Integer value)final Integerconsume()-
Methods inherited from class hiiragi283.core.common.storage.energy.HTBasicEnergyBattery
deserialize, getAmount, getCapacity, onContentsChanged, serialize, setAmount, setAmountUnchecked -
Methods inherited from class hiiragi283.core.api.storage.energy.HTEnergyBattery.Basic
toString -
Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountSlot.Basic
extract, insert -
Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView
getLevelAsFloat, getLevelAsFraction, getNeeded, isEmpty -
Methods inherited from class hiiragi283.core.api.HTContentListener
run -
Methods inherited from class hiiragi283.core.api.serialization.value.HTValueSerializable
deserializeNBT, serializeNBT -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTMachineEnergyBattery.Processor
HTMachineEnergyBattery.Processor(HTEnergyConfig config, HTContentListener listener, HTProcessorBlockEntity blockEntity)
-
-
Method Detail
-
getBaseEnergyPerTick
final Integer getBaseEnergyPerTick()
-
getBlockEntity
final HTProcessorBlockEntity getBlockEntity()
-
getCurrentEnergyPerTick
final Integer getCurrentEnergyPerTick()
-
setCurrentEnergyPerTick
final Unit setCurrentEnergyPerTick(Integer value)
-
-
-
-