Class HTListFluidTank

  • All Implemented Interfaces:
    hiiragi283.core.api.HTDataSerializable , hiiragi283.core.api.HTDataSerializable.Empty , hiiragi283.core.api.storage.amount.HTAmountView , hiiragi283.core.api.storage.fluid.HTFluidTank , hiiragi283.core.api.storage.resource.HTResourceSlot , hiiragi283.core.api.storage.resource.HTResourceView , net.neoforged.neoforge.common.util.INBTSerializable

    
    public final class HTListFluidTank
    extends HTFluidTank.Basic implements HTDataSerializable.Empty
                        

    EMIにおける入力スロットで複数の液体を表示させるためのHTFluidTankの実装クラスです。

    GTCEuに感謝!

    Since:

    0.7.0

    Author:

    Hiiragi Tsubasa

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Either<TagKey<Fluid>, List<HTFluidResourceType>> getContent()
      final EmiIngredient getIngredient()
      Unit setResource(HTFluidResourceType resource) 指定したresourceで中身を置換します。
      Unit setAmount(Integer amount) 保持しているリソースの量を変更します。
      Integer getAmount() 保持している量を返します。
      HTFluidResourceType getResource() 保持しているリソースを取得します。
      Integer getCapacity(HTFluidResourceType resource) 指定したresourceから容量を取得します。
      Boolean isValid(HTFluidResourceType resource) 指定したresourceが有効か判定します。
      • Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView

        getCapacity, getLevelAsFloat, getLevelAsFraction, getNeeded
      • Methods inherited from class hiiragi283.core.api.storage.fluid.HTFluidTank.Basic

        setStack, toString
      • Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceSlot.Basic

        canStackExtract, extract, insert, isStackValidForInsert
      • Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceSlot

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

        getLevelAsFloat, getLevelAsFraction, getNeeded
      • Methods inherited from class hiiragi283.core.api.HTDataSerializable

        serializeNBT
      • Methods inherited from class net.neoforged.neoforge.common.util.INBTSerializable

        deserializeNBT
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait