Package hiiragi283.core.impl.recipe
Class HTBasicItemToItemRecipe
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.HTItemToItemRecipe,hiiragi283.core.api.recipe.HTItemToItemRecipe.Serializable,hiiragi283.core.api.recipe.HTRecipe,hiiragi283.core.api.recipe.base.HTProcessingRecipe,hiiragi283.core.api.recipe.base.HTSerializableRecipe,java.util.function.Predicate,net.minecraft.world.item.crafting.Recipe
public abstract class HTBasicItemToItemRecipe implements HTItemToItemRecipe.Serializable
-
-
Field Summary
Fields Modifier and Type Field Description private final HTItemIngredientingredientprivate final HTItemResultresultprivate final Integertimeprivate final ItemStacktoastSymbolprivate final NonNullList<Ingredient>ingredientsprivate final BooleanisSpecialprivate final BooleanisIncompleteprivate final Stringgroupprivate final RecipeSerializer<?>serializerprivate final RecipeType<?>type
-
Constructor Summary
Constructors Constructor Description HTBasicItemToItemRecipe(HTItemIngredient ingredient, HTItemResult result, Integer time)
-
Method Summary
Modifier and Type Method Description final HTItemIngredientgetIngredient()final HTItemResultgetResult()final IntegergetTime()IntegergetRequiredAmount(SingleRecipeInput input)ItemStackassemble(SingleRecipeInput input, HolderLookup.Provider registries)指定されたinputとregistriesから完成品を作成します。 Booleantest(SingleRecipeInput input)指定されたinputが,このレシピの条件を満たすか判定します。 -
Methods inherited from class hiiragi283.core.api.recipe.HTItemToItemRecipe.Serializable
getGroup, getIngredients, getSerializer, getToastSymbol, getType, isIncomplete, isSpecial -
Methods inherited from class java.util.function.Predicate
and, negate, or -
Methods inherited from class hiiragi283.core.api.recipe.base.HTSerializableRecipe
canCraftInDimensions, getIngredients, getRemainingItems, getResultItem, isSpecial, matches -
Methods inherited from class net.minecraft.world.item.crafting.Recipe
showNotification -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTBasicItemToItemRecipe
HTBasicItemToItemRecipe(HTItemIngredient ingredient, HTItemResult result, Integer time)
-
-
Method Detail
-
getIngredient
final HTItemIngredient getIngredient()
-
getResult
final HTItemResult getResult()
-
getRequiredAmount
Integer getRequiredAmount(SingleRecipeInput input)
-
assemble
ItemStack assemble(SingleRecipeInput input, HolderLookup.Provider registries)
指定されたinputとregistriesから完成品を作成します。
-
-
-
-