Package hiiragi283.core.impl.recipe
Class HTBasicItemAndFluidToItemRecipe
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.HTBiRecipeFactory,hiiragi283.core.api.recipe.HTRecipePredicate,hiiragi283.core.api.recipe.base.HTItemAndFluidToItemRecipe,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
public class HTBasicItemAndFluidToItemRecipe implements HTItemAndFluidToItemRecipe, HTProgressRecipe.Simple<HTItemAndFluidRecipeInput>
-
-
Field Summary
Fields Modifier and Type Field Description public final static MapCodec<HTBasicItemAndFluidToItemRecipe>SIMPLE_CODECprivate final HTItemIngredientitemIngredientprivate final HTFluidIngredientfluidIngredientprivate final HTItemResultresultprivate final HTProgressDataprogressData
-
Constructor Summary
Constructors Constructor Description HTBasicItemAndFluidToItemRecipe(HTItemIngredient itemIngredient, HTFluidIngredient fluidIngredient, HTItemResult result, HTProgressData progressData)
-
Method Summary
Modifier and Type Method Description final HTItemIngredientgetItemIngredient()final HTFluidIngredientgetFluidIngredient()final HTItemResultgetResult()HTProgressDatagetProgressData()Booleantest(ItemStack first, FluidStack second)Pair<Integer, Integer>getRequiredAmount(ItemStack first, FluidStack second)ItemStackassemble(ItemStack firstInput, FluidStack secondInput)指定されたfirstInputとsecondInputから完成品を作成します。 final static <T extends HTBasicItemAndFluidToItemRecipe> MapCodec<T>codec(HTItemAndFluidToItemRecipeBuilder.Factory<T> factory)-
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
-
HTBasicItemAndFluidToItemRecipe
HTBasicItemAndFluidToItemRecipe(HTItemIngredient itemIngredient, HTFluidIngredient fluidIngredient, HTItemResult result, HTProgressData progressData)
-
-
Method Detail
-
getItemIngredient
final HTItemIngredient getItemIngredient()
-
getFluidIngredient
final HTFluidIngredient getFluidIngredient()
-
getResult
final HTItemResult getResult()
-
getProgressData
HTProgressData getProgressData()
-
getRequiredAmount
Pair<Integer, Integer> getRequiredAmount(ItemStack first, FluidStack second)
-
assemble
ItemStack assemble(ItemStack firstInput, FluidStack secondInput)
指定されたfirstInputとsecondInputから完成品を作成します。
-
codec
final static <T extends HTBasicItemAndFluidToItemRecipe> MapCodec<T> codec(HTItemAndFluidToItemRecipeBuilder.Factory<T> factory)
-
-
-
-