Class HTListItemSlot

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

    
    public final class HTListItemSlot
    extends HTItemSlot.Basic implements HTDataSerializable.Empty
                        

    EMIにおける入力スロットで複数のアイテムを表示させるためのHTItemSlotの実装クラスです。

    GTCEuに感謝!

    Since:

    0.7.0

    Author:

    Hiiragi Tsubasa

    • 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
      final EmiIngredient getIngredient()
      Unit setResource(HTItemResourceType resource) 指定したresourceで中身を置換します。
      Unit setAmount(Integer amount) 保持しているリソースの量を変更します。
      Integer getAmount() 保持している量を返します。
      HTItemResourceType getResource() 保持しているリソースを取得します。
      Integer getCapacity(HTItemResourceType resource) 指定したresourceから容量を取得します。
      Boolean isValid(HTItemResourceType resource) 指定したresourceが有効か判定します。
      • Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView

        getCapacity, getLevelAsFloat, getLevelAsFraction, getNeeded
      • Methods inherited from class hiiragi283.core.api.storage.item.HTItemSlot.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