Package vazkii.botania.api.recipe
Interface ManaInfusionRecipe
- All Superinterfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
- All Known Implementing Classes:
ManaInfusionRecipe
public interface ManaInfusionRecipe
extends net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
Field Summary
FieldsFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, STREAM_CODEC -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull net.minecraft.world.item.ItemStackassemble(@NotNull net.minecraft.world.item.crafting.RecipeInput inv, net.minecraft.core.HolderLookup.Provider registries) default booleancanCraftInDimensions(int width, int height) int@NotNull StateIngredientGet the catalyst that must be under the Mana Pool for this recipe, ornullif it can be anything.default @NotNull net.minecraft.world.item.ItemStackgetRecipeOutput(@NotNull net.minecraft.core.RegistryAccess registries, @NotNull net.minecraft.world.item.ItemStack input) Get the actual recipe output, not just for display.@NotNull net.minecraft.world.item.ItemStackgetResultItem(net.minecraft.core.HolderLookup.Provider registries) Get the recipe output, used for display (in JEI or the HUD).default @NotNull net.minecraft.world.item.crafting.RecipeType<?> getType()default booleandefault booleanmatches(@NotNull net.minecraft.world.item.crafting.RecipeInput inv, @NotNull net.minecraft.world.level.Level world) booleanmatches(net.minecraft.world.item.ItemStack stack) Attempts to match the recipe.Methods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getIngredients, getRemainingItems, getSerializer, getToastSymbol, isIncomplete, showNotification
-
Field Details
-
TYPE_ID
static final net.minecraft.resources.ResourceLocation TYPE_ID
-
-
Method Details
-
matches
boolean matches(net.minecraft.world.item.ItemStack stack) Attempts to match the recipe.- Parameters:
stack- The whole stack that is in the Mana Pool (when actually crafting) or in the player's hand (for the HUD).- Returns:
- Whether this recipe matches the given stack.
-
getResultItem
@NotNull @NotNull net.minecraft.world.item.ItemStack getResultItem(@NotNull net.minecraft.core.HolderLookup.Provider registries) Get the recipe output, used for display (in JEI or the HUD). IfgetRecipeOutput(net.minecraft.core.RegistryAccess, net.minecraft.world.item.ItemStack)isn't overridden, this is also the actual result of the crafting recipe.- Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>- Returns:
- The output stack of the recipe.
-
getRecipeOutput
@NotNull default @NotNull net.minecraft.world.item.ItemStack getRecipeOutput(@NotNull @NotNull net.minecraft.core.RegistryAccess registries, @NotNull @NotNull net.minecraft.world.item.ItemStack input) Get the actual recipe output, not just for display. Defaults to a copy ofgetResultItem(net.minecraft.core.HolderLookup.Provider).- Parameters:
input- The whole stack that is in the Mana Pool, not a copy.- Returns:
- The output stack of the recipe for the specific input.
-
getRecipeCatalyst
Get the catalyst that must be under the Mana Pool for this recipe, ornullif it can be anything.- Returns:
- The catalyst ingredient.
-
getManaToConsume
int getManaToConsume()- Returns:
- How much mana this recipe consumes from the pool.
-
getType
@NotNull default @NotNull net.minecraft.world.item.crafting.RecipeType<?> getType()- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
assemble
@NotNull default @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>
-
matches
default boolean matches(@NotNull @NotNull 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>
-
canCraftInDimensions
default boolean canCraftInDimensions(int width, int height) - Specified by:
canCraftInDimensionsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
isSpecial
default boolean isSpecial()- Specified by:
isSpecialin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-