Class HTResourceSlot.Mutable

  • 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 abstract class HTResourceSlot.Mutable<RESOURCE extends HTResourceType<?>>
    extends HTResourceView.Mutable<RESOURCE> implements HTResourceSlot<RESOURCE>
                        
    • 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 insert(RESOURCE resource, Integer amount, HTStorageAction action, HTStorageAccess access) このスロットにリソースを搬入します。
      Integer extract(Integer amount, HTStorageAction action, HTStorageAccess access) このスロットからリソースを搬出します。
      Boolean isStackValidForInsert(RESOURCE resource, HTStorageAccess access) 指定したリソースをこのスロットに搬入できるか判定します。
      Boolean canStackExtract(RESOURCE resource, HTStorageAccess access) 指定したリソースをこのスロットから搬出できるか判定します。
      • Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceSlot

        extract, isValid
      • Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceView.Mutable

        setResource
      • 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.storage.resource.HTResourceView

        getCapacity, getLevelAsFloat, getLevelAsFraction, getNeeded, getResource
      • Methods inherited from class hiiragi283.core.api.serialization.value.HTValueSerializable

        deserialize, serialize
      • 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
    • Constructor Detail

      • HTResourceSlot.Mutable

        HTResourceSlot.Mutable()