Class HTExperienceTomeFluidTank

  • All Implemented Interfaces:
    hiiragi283.core.api.HTContentListener , hiiragi283.core.api.HTContentListener.Empty , hiiragi283.core.api.serialization.value.HTValueSerializable , hiiragi283.core.api.serialization.value.HTValueSerializable.Empty , hiiragi283.core.api.storage.amount.HTAmountView , hiiragi283.core.api.storage.resource.HTResourceSlot , hiiragi283.core.api.storage.resource.HTResourceView , hiiragi283.core.impl.storage.fluid.HTItemFluidTank , java.lang.Runnable , net.neoforged.neoforge.common.util.INBTSerializable

    
    public final class HTExperienceTomeFluidTank
     implements HTItemFluidTank
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final ItemStack container
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ItemStack getContainer()
      final Integer getExpRatio()
      Boolean isValid(HTFluidResourceType resource) 指定したresourceが有効か判定します。
      Integer insert(HTFluidResourceType resource, Integer amount, HTStorageAction action, HTStorageAccess access) このスロットにリソースを搬入します。
      Integer extract(Integer amount, HTStorageAction action, HTStorageAccess access) このスロットからリソースを搬出します。
      HTFluidResourceType getResource() 保持しているリソースを取得します。
      Integer getCapacity(HTFluidResourceType resource) 指定したresourceから容量を取得します。
      Integer getAmount() 保持している量を返します。
      • Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceSlot

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

        getCapacity, getLevelAsFloat, getLevelAsFraction, getNeeded, isEmpty
      • Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView

        getLevelAsFloat, getLevelAsFraction, getNeeded
      • 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