Interface HTIngredient
-
- All Implemented Interfaces:
-
hiiragi283.core.api.text.HTHasText,java.util.function.BiPredicate
public interface HTIngredient<RESOURCE extends Object> implements BiPredicate<RESOURCE, Int>, HTHasText
レシピの材料を表すインターフェースです。
- Since:
0.10.0
Hiiragi Tsubasa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceHTIngredient.RegisteredHTResourceTypeに基づいたHTIngredientの拡張インターフェースです。
-
Method Summary
-
-
Method Detail
-
test
Boolean test(RESOURCE resource, Integer amount)
- Returns:
testOnlyTypeが
true,かつamountがHTIngredient.amount以上の場合はtrue
-
testOnlyType
abstract Boolean testOnlyType(RESOURCE resource)
指定したresourceが条件を満たしているか判定します。
-
isCatalyst
Boolean isCatalyst()
-
-
-
-