Package hiiragi283.lib.transfer
Interface HTResourceView
-
- All Implemented Interfaces:
public interface HTResourceView<RESOURCE extends Resource>単一の不変のリソースを保持するインターフェースです。
- Since:
0.1.0
Hiiragi Tsubasa
-
-
Method Summary
Modifier and Type Method Description BooleanisEmpty()abstract LonggetCapacityAsLong(RESOURCE resource)IntegergetCapacityAsInt(RESOURCE resource)LonggetNeededAsLong(RESOURCE resource)指定したresourceから空き容量を取得します。 IntegergetNeededAsInt(RESOURCE resource)FractiongetFilledLevel(RESOURCE resource)LonggetCurrentCapacityAsLong()IntegergetCurrentCapacityAsInt()abstract RESOURCEgetResource()abstract LonggetAmountAsLong()IntegergetAmountAsInt()-
-
Method Detail
-
getCapacityAsLong
abstract Long getCapacityAsLong(RESOURCE resource)
-
getCapacityAsInt
Integer getCapacityAsInt(RESOURCE resource)
-
getNeededAsLong
Long getNeededAsLong(RESOURCE resource)
指定したresourceから空き容量を取得します。
-
getNeededAsInt
Integer getNeededAsInt(RESOURCE resource)
-
getFilledLevel
Fraction getFilledLevel(RESOURCE resource)
-
getCurrentCapacityAsLong
Long getCurrentCapacityAsLong()
-
getCurrentCapacityAsInt
Integer getCurrentCapacityAsInt()
-
getResource
abstract RESOURCE getResource()
-
getAmountAsLong
abstract Long getAmountAsLong()
-
getAmountAsInt
Integer getAmountAsInt()
-
-
-
-