Package hiiragi283.core.common.recipe
Class HCBrewingRecipe
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.HTBiRecipeFactory,hiiragi283.core.api.recipe.HTRecipePredicate,hiiragi283.core.api.recipe.base.HTItemOrFluidRecipe,hiiragi283.core.api.recipe.base.HTProgressRecipe,hiiragi283.core.api.recipe.base.HTProgressRecipe.Simple,hiiragi283.core.api.recipe.base.HTRecipeFactories.ItemAndFluid,hiiragi283.core.api.recipe.base.HTRecipePredicates.DoubleInput,hiiragi283.core.api.recipe.base.HTRecipePredicates.ItemAndFluid,java.util.function.BiPredicate
@JvmRecord() public final class HCBrewingRecipe extends Record implements HTItemOrFluidRecipe, HTProgressRecipe.Simple<HTItemAndFluidRecipeInput>
-
-
Field Summary
Fields Modifier and Type Field Description public final static MapCodec<HCBrewingRecipe>CODECpublic final static Comparator<in HCBrewingRecipe>SORTERprivate final Holder<Potion>potionFromprivate final Ingredientingredientprivate final Holder<Potion>potionToprivate final HTProgressDataprogressData
-
Constructor Summary
Constructors Constructor Description HCBrewingRecipe(Holder<Potion> potionFrom, Ingredient ingredient, Holder<Potion> potionTo)HCBrewingRecipe(PotionBrewingMixAccessor<Potion> accessor)
-
Method Summary
Modifier and Type Method Description final Holder<Potion>getPotionFrom()final IngredientgetIngredient()final Holder<Potion>getPotionTo()HTProgressDatagetProgressData()Booleantest(ItemStack first, FluidStack second)Pair<Integer, Integer>getRequiredAmount(ItemStack first, FluidStack second)HTItemAndFluidResultassemble(ItemStack firstInput, FluidStack secondInput)指定されたfirstInputとsecondInputから完成品を作成します。 -
Methods inherited from class hiiragi283.core.api.recipe.base.HTRecipePredicates.ItemAndFluid
matches -
Methods inherited from class java.util.function.BiPredicate
and, negate, or -
Methods inherited from class hiiragi283.core.api.recipe.base.HTProgressRecipe
getProgressData -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HCBrewingRecipe
HCBrewingRecipe(Holder<Potion> potionFrom, Ingredient ingredient, Holder<Potion> potionTo)
-
HCBrewingRecipe
HCBrewingRecipe(PotionBrewingMixAccessor<Potion> accessor)
-
-
Method Detail
-
getPotionFrom
final Holder<Potion> getPotionFrom()
-
getIngredient
final Ingredient getIngredient()
-
getPotionTo
final Holder<Potion> getPotionTo()
-
getProgressData
HTProgressData getProgressData()
-
getRequiredAmount
Pair<Integer, Integer> getRequiredAmount(ItemStack first, FluidStack second)
-
assemble
HTItemAndFluidResult assemble(ItemStack firstInput, FluidStack secondInput)
指定されたfirstInputとsecondInputから完成品を作成します。
-
-
-
-