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
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Integer getCapacity(HTItemResourceType resource)
      final static HTBasicItemSlot create(HTContentListener listener, IntSupplier capacity, BiPredicate<HTItemResourceType, HTStorageAccess> canExtract, BiPredicate<HTItemResourceType, HTStorageAccess> canInsert, Predicate<HTItemResourceType> filter)
      final static HTBasicItemSlot input(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)