Package vazkii.botania.common.crafting
Class PetalApothecaryRecipe
java.lang.Object
vazkii.botania.common.crafting.PetalApothecaryRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>,PetalApothecaryRecipe,RecipeWithReagent
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface vazkii.botania.api.recipe.PetalApothecaryRecipe
TYPE_IDFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionPetalApothecaryRecipe(net.minecraft.world.item.ItemStack output, net.minecraft.world.item.crafting.Ingredient reagent, net.minecraft.world.item.crafting.Ingredient... ingredients) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.world.item.ItemStackassemble(@NotNull net.minecraft.world.item.crafting.RecipeInput inv, net.minecraft.core.HolderLookup.Provider registries) @NotNull net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> net.minecraft.world.item.ItemStacknet.minecraft.world.item.crafting.Ingredientfinal @NotNull net.minecraft.world.item.ItemStackgetResultItem(net.minecraft.core.HolderLookup.Provider registries) @NotNull net.minecraft.world.item.crafting.RecipeSerializer<? extends PetalApothecaryRecipe> @NotNull net.minecraft.world.item.ItemStackbooleanmatches(net.minecraft.world.item.crafting.RecipeInput inv, @NotNull net.minecraft.world.level.Level world) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface vazkii.botania.api.recipe.PetalApothecaryRecipe
getTypeMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getRemainingItems, isIncomplete, showNotificationMethods inherited from interface vazkii.botania.api.recipe.RecipeWithReagent
canCraftInDimensions, isSpecial
-
Constructor Details
-
PetalApothecaryRecipe
public PetalApothecaryRecipe(net.minecraft.world.item.ItemStack output, net.minecraft.world.item.crafting.Ingredient reagent, net.minecraft.world.item.crafting.Ingredient... ingredients)
-
-
Method Details
-
matches
public boolean matches(net.minecraft.world.item.crafting.RecipeInput inv, @NotNull @NotNull net.minecraft.world.level.Level world) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
getResultItem
@NotNull public final @NotNull net.minecraft.world.item.ItemStack getResultItem(@NotNull net.minecraft.core.HolderLookup.Provider registries) - Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
assemble
@NotNull public @NotNull net.minecraft.world.item.ItemStack assemble(@NotNull @NotNull net.minecraft.world.item.crafting.RecipeInput inv, @NotNull net.minecraft.core.HolderLookup.Provider registries) - Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
getOutput
public net.minecraft.world.item.ItemStack getOutput() -
getReagent
public net.minecraft.world.item.crafting.Ingredient getReagent()- Specified by:
getReagentin interfaceRecipeWithReagent- Returns:
- Ingredient matching the final item that needs to be thrown into the apothecary to perform a craft after a matching recipe is in.
-
getIngredients
@NotNull public @NotNull net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getIngredients()- Specified by:
getIngredientsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
getToastSymbol
@NotNull public @NotNull net.minecraft.world.item.ItemStack getToastSymbol()- Specified by:
getToastSymbolin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
getSerializer
@NotNull public @NotNull net.minecraft.world.item.crafting.RecipeSerializer<? extends PetalApothecaryRecipe> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-