Class HTItemIngredient
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.ingredient.HTIngredient,hiiragi283.core.api.recipe.ingredient.HTIngredient.Registered,hiiragi283.core.api.text.HTHasText,java.util.function.BiPredicate
public final class HTItemIngredient implements HTIngredient.Registered<Item, HTItemResourceType>
HTItemResourceType向けにHTIngredientを実装したクラスです。
- Since:
0.10.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description public final static BiCodec<RegistryFriendlyByteBuf, HTItemIngredient>CODECprivate final Ingredientunsizedprivate final Integeramountprivate final BooleanisCatalyst
-
Constructor Summary
Constructors Constructor Description HTItemIngredient(Ingredient unsized, Integer amount)
-
Method Summary
Modifier and Type Method Description final IngredientgetUnsized()IntegergetAmount()BooleanisCatalyst()final Booleantest(ItemStack stack)final BooleantestOnlyType(ItemStack stack)BooleantestOnlyType(HTItemResourceType resource)指定したresourceが条件を満たしているか判定します。 Either<TagKey<Item>, List<HTItemResourceType>>unwrap()この材料に一致するすべての種類を返します。 StringtoString()-
Methods inherited from class hiiragi283.core.api.recipe.ingredient.HTIngredient
test -
Methods inherited from class hiiragi283.core.api.recipe.ingredient.HTIngredient.Registered
getText -
Methods inherited from class java.util.function.BiPredicate
and, negate, or -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTItemIngredient
HTItemIngredient(Ingredient unsized, Integer amount)
-
-
Method Detail
-
getUnsized
final Ingredient getUnsized()
-
isCatalyst
Boolean isCatalyst()
-
testOnlyType
final Boolean testOnlyType(ItemStack stack)
-
testOnlyType
Boolean testOnlyType(HTItemResourceType resource)
指定したresourceが条件を満たしているか判定します。
-
unwrap
Either<TagKey<Item>, List<HTItemResourceType>> unwrap()
この材料に一致するすべての種類を返します。
-
-
-
-