Package hiiragi283.core.common.recipe
Class HCTankFillingRecipe
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.HTBiRecipeFactory,hiiragi283.core.api.recipe.HTRecipePredicate,hiiragi283.core.api.recipe.base.HTRecipeFactories.ItemAndFluid,hiiragi283.core.api.recipe.base.HTRecipePredicates.DoubleInput,hiiragi283.core.api.recipe.base.HTRecipePredicates.ItemAndFluid,hiiragi283.core.api.recipe.base.HTTankFillingRecipe,hiiragi283.core.impl.recipe.HTSerializableRecipe,java.util.function.BiPredicate,net.minecraft.world.item.crafting.Recipe
public final class HCTankFillingRecipe implements HTTankFillingRecipe, HTSerializableRecipe<HTItemAndFluidRecipeInput>
-
-
Field Summary
Fields Modifier and Type Field Description public final static MapCodec<HCTankFillingRecipe>CODECprivate final IngredientitemIngredientprivate final HTFluidIngredientfluidIngredientprivate final HTItemResultresultprivate final ItemStacktoastSymbolprivate final NonNullList<Ingredient>ingredientsprivate final BooleanisSpecialprivate final BooleanisIncompleteprivate final Stringgroupprivate final RecipeSerializer<?>serializerprivate final RecipeType<?>type
-
Constructor Summary
Constructors Constructor Description HCTankFillingRecipe(Ingredient itemIngredient, HTFluidIngredient fluidIngredient, HTItemResult result)
-
Method Summary
Modifier and Type Method Description final IngredientgetItemIngredient()final HTFluidIngredientgetFluidIngredient()final HTItemResultgetResult()BooleantestContainer(ItemStack stack)BooleantestFluid(FluidStack stack)ItemStackassemble(ItemStack firstInput, FluidStack secondInput)指定されたfirstInputとsecondInputから完成品を作成します。 Pair<Integer, Integer>getRequiredAmount(ItemStack first, FluidStack second)RecipeSerializer<?>getSerializer()RecipeType<?>getType()-
Methods inherited from class hiiragi283.core.common.recipe.HCTankFillingRecipe
getGroup, getIngredients, getSerializer, getToastSymbol, getType, isIncomplete, isSpecial -
Methods inherited from class hiiragi283.core.impl.recipe.HTSerializableRecipe
assemble, canCraftInDimensions, getIngredients, getRemainingItems, getResultItem, isSpecial, matches -
Methods inherited from class hiiragi283.core.api.recipe.base.HTTankFillingRecipe
test -
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 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
-
HCTankFillingRecipe
HCTankFillingRecipe(Ingredient itemIngredient, HTFluidIngredient fluidIngredient, HTItemResult result)
-
-
Method Detail
-
getItemIngredient
final Ingredient getItemIngredient()
-
getFluidIngredient
final HTFluidIngredient getFluidIngredient()
-
getResult
final HTItemResult getResult()
-
testContainer
Boolean testContainer(ItemStack stack)
-
assemble
ItemStack assemble(ItemStack firstInput, FluidStack secondInput)
指定されたfirstInputとsecondInputから完成品を作成します。
-
getRequiredAmount
Pair<Integer, Integer> getRequiredAmount(ItemStack first, FluidStack second)
-
getSerializer
RecipeSerializer<?> getSerializer()
-
getType
RecipeType<?> getType()
-
-
-
-