Interface HTInputHandler
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.handler.HTAmountInputHandler
public interface HTInputHandler<RESOURCE extends HTResourceType> implements HTAmountInputHandler
レシピの入力スロットを表すインターフェースです。
- Since:
0.5.0
Hiiragi Tsubasa
-
-
Method Summary
Modifier and Type Method Description abstract IntegergetMatchingAmount(HTIngredient<RESOURCE> ingredient)指定した材料から消費される数量を取得します。 Unitconsume(HTIngredient<RESOURCE> ingredient)指定した材料から中身を消費します。 Unitconsume(Optional<out HTIngredient<RESOURCE>> ingredient)指定した材料から中身を消費します。 -
-
Method Detail
-
getMatchingAmount
abstract Integer getMatchingAmount(HTIngredient<RESOURCE> ingredient)
指定した材料から消費される数量を取得します。
- Returns:
ingredientが要求する数量
-
consume
Unit consume(HTIngredient<RESOURCE> ingredient)
指定した材料から中身を消費します。
-
-
-
-