Class HTAmountSlot.Basic
-
- All Implemented Interfaces:
-
hiiragi283.core.api.HTContentListener,hiiragi283.core.api.storage.amount.HTAmountSlot,hiiragi283.core.api.storage.amount.HTAmountView,java.lang.Runnable
public abstract class HTAmountSlot.Basic extends HTAmountView.Mutable implements HTAmountSlot, HTContentListener
-
-
Constructor Summary
Constructors Constructor Description HTAmountSlot.Basic()
-
Method Summary
Modifier and Type Method Description Integerinsert(Integer amount, HTStorageAction action, HTStorageAccess access)このスロットに量を搬入します。 Integerextract(Integer amount, HTStorageAction action, HTStorageAccess access)このスロットから量を搬出します。 -
Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView.Mutable
setAmount -
Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView
getAmount, getCapacity, getLevelAsFloat, getLevelAsFraction, getNeeded, isEmpty -
Methods inherited from class hiiragi283.core.api.HTContentListener
onContentsChanged -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
insert
Integer insert(Integer amount, HTStorageAction action, HTStorageAccess access)
このスロットに量を搬入します。
- Returns:
搬入される量
-
extract
Integer extract(Integer amount, HTStorageAction action, HTStorageAccess access)
このスロットから量を搬出します。
- Returns:
搬出される量
-
-
-
-