Interface HTResourceView

  • All Implemented Interfaces:
    hiiragi283.core.api.storage.amount.HTAmountView , hiiragi283.core.api.storage.amount.HTAmountView.IntSized

    
    public interface HTResourceView<RESOURCE extends HTResourceType<?>>
     implements HTAmountView.IntSized
                        

    単一の不変のリソースを保持するインターフェースです。

    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 RESOURCE getResource() 保持しているリソースを取得します。
      abstract Integer getCapacity(RESOURCE resource) 指定したresourceから容量を取得します。
      Integer getCapacity() 容量を返します。
      Integer getNeeded(RESOURCE resource) 指定したresourceから空き容量を取得します。
      Fraction getStoredLevel(RESOURCE resource) 指定したresourceから占有率を取得します。
      • Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView.IntSized

        getNeeded, getStoredLevel
      • Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView

        getAmount
      • Methods inherited from class java.lang.Object

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