Package hiiragi283.core.common.recipe
Class HCMeltingRecipe
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.HTRecipe,hiiragi283.core.api.recipe.base.HTFluidRecipe,hiiragi283.core.api.recipe.base.HTProcessingRecipe,hiiragi283.core.api.recipe.base.HTProcessingRecipe.Serializable,hiiragi283.core.api.recipe.base.HTSerializableRecipe,java.util.function.Predicate,net.minecraft.world.item.crafting.Recipe
public final class HCMeltingRecipe implements HTProcessingRecipe.Serializable<HCMeltingRecipe.Input>, HTFluidRecipe<HCMeltingRecipe.Input>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classHCMeltingRecipe.Input
-
Field Summary
Fields Modifier and Type Field Description private final HTItemIngredientingredientprivate final HTFluidResultresultprivate final HTMinMaxRange<Integer>heatRangeprivate 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 HCMeltingRecipe(HTItemIngredient ingredient, HTFluidResult result, HTMinMaxRange<Integer> heatRange, Integer time)
-
Method Summary
Modifier and Type Method Description final HTItemIngredientgetIngredient()final HTFluidResultgetResult()final HTMinMaxRange<Integer>getHeatRange()IntegergetTime()Booleantest(HCMeltingRecipe.Input input)指定されたinputが,このレシピの条件を満たすか判定します。 ItemStackassemble(HCMeltingRecipe.Input input, HolderLookup.Provider registries)指定されたinputとregistriesから完成品を作成します。 RecipeSerializer<?>getSerializer()RecipeType<?>getType()FluidStackassembleFluid(HCMeltingRecipe.Input input, HolderLookup.Provider registries)完成品の液体を取得します。 -
Methods inherited from class hiiragi283.core.common.recipe.HCMeltingRecipe
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
-
HCMeltingRecipe
HCMeltingRecipe(HTItemIngredient ingredient, HTFluidResult result, HTMinMaxRange<Integer> heatRange, Integer time)
-
-
Method Detail
-
getIngredient
final HTItemIngredient getIngredient()
-
getResult
final HTFluidResult getResult()
-
getHeatRange
final HTMinMaxRange<Integer> getHeatRange()
-
test
Boolean test(HCMeltingRecipe.Input input)
指定されたinputが,このレシピの条件を満たすか判定します。
-
assemble
ItemStack assemble(HCMeltingRecipe.Input input, HolderLookup.Provider registries)
指定されたinputとregistriesから完成品を作成します。
-
getSerializer
RecipeSerializer<?> getSerializer()
-
getType
RecipeType<?> getType()
-
assembleFluid
FluidStack assembleFluid(HCMeltingRecipe.Input input, HolderLookup.Provider registries)
完成品の液体を取得します。
-
-
-
-