Package hiiragi283.lib.transfer.proxy
Class HTProxyEnergyHandler
-
- All Implemented Interfaces:
-
net.neoforged.neoforge.transfer.energy.EnergyHandler
public final class HTProxyEnergyHandler extends HTProxyHandler implements EnergyHandler
-
-
Field Summary
Fields Modifier and Type Field Description private final LongamountAsLongprivate final IntegercapacityAsIntprivate final LongcapacityAsLongprivate final IntegeramountAsInt
-
Constructor Summary
Constructors Constructor Description HTProxyEnergyHandler(HTEnergyHandler handler, Direction side, HTCapabilityHolder holder)
-
Method Summary
Modifier and Type Method Description LonggetAmountAsLong()LonggetCapacityAsLong()Integerinsert(Integer amount, TransactionContext transaction)Integerextract(Integer amount, TransactionContext transaction)-
Methods inherited from class hiiragi283.lib.transfer.proxy.HTProxyEnergyHandler
getAmountAsLong, getCapacityAsLong -
Methods inherited from class net.neoforged.neoforge.transfer.energy.EnergyHandler
getAmountAsInt, getCapacityAsInt -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTProxyEnergyHandler
HTProxyEnergyHandler(HTEnergyHandler handler, Direction side, HTCapabilityHolder holder)
-
-
Method Detail
-
getAmountAsLong
Long getAmountAsLong()
-
getCapacityAsLong
Long getCapacityAsLong()
-
-
-
-