Interface HTResourceSlot

  • All Implemented Interfaces:
    hiiragi283.lib.transfer.HTResourceView , net.neoforged.neoforge.common.util.ValueIOSerializable

    
    public interface HTResourceSlot<RESOURCE extends Resource>
     implements HTResourceView<RESOURCE>, ValueIOSerializable
                        

    リソースを搬入/搬出できることを表すインターフェースです。

    Since:

    0.1.0

    Author:

    Hiiragi Tsubasa

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Boolean isValid(RESOURCE resource)
      abstract Integer insert(RESOURCE resource, Integer amount, TransactionContext transaction, HTHandlerAccess access)
      abstract Integer extract(RESOURCE resource, Integer amount, TransactionContext transaction, HTHandlerAccess access)
      abstract RESOURCE getResource()
      abstract Long getAmountAsLong()
      Integer getAmountAsInt()
      • Methods inherited from class hiiragi283.lib.transfer.HTResourceView

        getCapacityAsInt, getCapacityAsLong, getCurrentCapacityAsInt, getCurrentCapacityAsLong, getFilledLevel, getNeededAsInt, getNeededAsLong, isEmpty
      • Methods inherited from class net.neoforged.neoforge.common.util.ValueIOSerializable

        deserialize, serialize
      • Methods inherited from class java.lang.Object

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