Class HTVariableItemSlot
-
- All Implemented Interfaces:
-
hiiragi283.core.api.HTContentListener,hiiragi283.core.api.serialization.value.HTValueSerializable,hiiragi283.core.api.storage.amount.HTAmountView,hiiragi283.core.api.storage.resource.HTResourceSlot,hiiragi283.core.api.storage.resource.HTResourceView,java.lang.Runnable,net.neoforged.neoforge.common.util.INBTSerializable
public final class HTVariableItemSlot extends HTBasicItemSlot
-
-
Constructor Summary
Constructors Constructor Description HTVariableItemSlot(IntSupplier capacitySupplier, BiPredicate<HTItemResourceType, HTStorageAccess> canExtract, BiPredicate<HTItemResourceType, HTStorageAccess> canInsert, Predicate<HTItemResourceType> filter, HTContentListener listener)
-
Method Summary
Modifier and Type Method Description IntegergetCapacity(HTItemResourceType resource)final static HTBasicItemSlotcreate(HTContentListener listener, IntSupplier capacity, BiPredicate<HTItemResourceType, HTStorageAccess> canExtract, BiPredicate<HTItemResourceType, HTStorageAccess> canInsert, Predicate<HTItemResourceType> filter)final static HTBasicItemSlotinput(HTContentListener listener, IntSupplier capacity, Predicate<HTItemResourceType> canInsert, Predicate<HTItemResourceType> filter)-
Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceView
getCapacity, getLevelAsFloat, getLevelAsFraction, getNeeded, isEmpty -
Methods inherited from class hiiragi283.core.common.storage.item.HTBasicItemSlot
canStackExtract, deserialize, getStack, isStackValidForInsert, isValid, onContentsChanged, serialize, setStack -
Methods inherited from class hiiragi283.core.impl.storage.resource.HTStackResourceSlot
extract, getAmount, getResource, insert -
Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceSlot
extract -
Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView
getLevelAsFloat, getLevelAsFraction, getNeeded -
Methods inherited from class hiiragi283.core.api.serialization.value.HTValueSerializable
deserializeNBT, serializeNBT -
Methods inherited from class hiiragi283.core.api.HTContentListener
run -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTVariableItemSlot
HTVariableItemSlot(IntSupplier capacitySupplier, BiPredicate<HTItemResourceType, HTStorageAccess> canExtract, BiPredicate<HTItemResourceType, HTStorageAccess> canInsert, Predicate<HTItemResourceType> filter, HTContentListener listener)
-
-
Method Detail
-
getCapacity
Integer getCapacity(HTItemResourceType resource)
-
create
final static HTBasicItemSlot create(HTContentListener listener, IntSupplier capacity, BiPredicate<HTItemResourceType, HTStorageAccess> canExtract, BiPredicate<HTItemResourceType, HTStorageAccess> canInsert, Predicate<HTItemResourceType> filter)
-
input
final static HTBasicItemSlot input(HTContentListener listener, IntSupplier capacity, Predicate<HTItemResourceType> canInsert, Predicate<HTItemResourceType> filter)
-
-
-
-