Package hiiragi283.core.impl.recipe
Class HTInWorldRecipe
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.HTRecipeFactory,hiiragi283.core.api.recipe.HTRecipePredicate,hiiragi283.core.api.recipe.base.HTRecipeFactories.SingleItemTo,hiiragi283.core.api.recipe.base.HTRecipePredicates.SingleInput,hiiragi283.core.api.recipe.base.HTRecipePredicates.SingleItem,java.util.function.Predicate
public class HTInWorldRecipe implements HTRecipePredicates.SingleItem, HTRecipeFactories.SingleItemTo<ItemStack>
-
-
Field Summary
Fields Modifier and Type Field Description public final static MapCodec<HTInWorldRecipe>SIMPLE_CODECprivate final Ingredientingredientprivate final HTItemResultresult
-
Constructor Summary
Constructors Constructor Description HTInWorldRecipe(Ingredient ingredient, HTItemResult result)
-
Method Summary
Modifier and Type Method Description final IngredientgetIngredient()final HTItemResultgetResult()Booleantest(ItemStack input)IntegergetRequiredAmount(ItemStack input)ItemStackassemble(ItemStack input)指定されたinputから完成品を作成します。 final static <T extends HTInWorldRecipe> MapCodec<T>codec(Function2<Ingredient, HTItemResult, T> factory)-
Methods inherited from class hiiragi283.core.api.recipe.base.HTRecipePredicates.SingleItem
matches -
Methods inherited from class java.util.function.Predicate
and, negate, or -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTInWorldRecipe
HTInWorldRecipe(Ingredient ingredient, HTItemResult result)
-
-
Method Detail
-
getIngredient
final Ingredient getIngredient()
-
getResult
final HTItemResult getResult()
-
getRequiredAmount
Integer getRequiredAmount(ItemStack input)
-
codec
final static <T extends HTInWorldRecipe> MapCodec<T> codec(Function2<Ingredient, HTItemResult, T> factory)
-
-
-
-