Interface HTAmountSlot

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

    
    public interface HTAmountSlot
     implements HTAmountView
                        

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

    Since:

    0.7.0

    Author:

    Hiiragi Tsubasa

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class HTAmountSlot.Basic
    • 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 Integer insert(Integer amount, HTStorageAction action, HTStorageAccess access) このスロットに量を搬入します。
      abstract Integer extract(Integer amount, HTStorageAction action, HTStorageAccess access) このスロットから量を搬出します。
      • Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView

        getAmount, getCapacity, getLevelAsFloat, getLevelAsFraction, getNeeded, isEmpty
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • insert

         abstract Integer insert(Integer amount, HTStorageAction action, HTStorageAccess access)

        このスロットに量を搬入します。

        Parameters:
        amount - 搬入する量
        action - 処理のフラグ
        access - このスロットへのアクセスの種類
        Returns:

        搬入される量

      • extract

         abstract Integer extract(Integer amount, HTStorageAction action, HTStorageAccess access)

        このスロットから量を搬出します。

        Parameters:
        amount - 搬出する量
        action - 処理のフラグ
        access - このスロットへのアクセスの種類
        Returns:

        搬出される量