Class ManaInfusionRecipe

java.lang.Object
vazkii.botania.common.crafting.ManaInfusionRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>, ManaInfusionRecipe

public class ManaInfusionRecipe extends Object implements ManaInfusionRecipe
  • Constructor Details

    • ManaInfusionRecipe

      public ManaInfusionRecipe(net.minecraft.world.item.ItemStack output, net.minecraft.world.item.crafting.Ingredient input, int mana, String group, StateIngredient catalyst)
  • Method Details

    • getSerializer

      @NotNull public @NotNull net.minecraft.world.item.crafting.RecipeSerializer<ManaInfusionRecipe> getSerializer()
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • matches

      public boolean matches(net.minecraft.world.item.ItemStack stack)
      Description copied from interface: ManaInfusionRecipe
      Attempts to match the recipe.
      Specified by:
      matches in interface ManaInfusionRecipe
      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.
    • getRecipeCatalyst

      @NotNull public @NotNull StateIngredient getRecipeCatalyst()
      Description copied from interface: ManaInfusionRecipe
      Get the catalyst that must be under the Mana Pool for this recipe, or null if it can be anything.
      Specified by:
      getRecipeCatalyst in interface ManaInfusionRecipe
      Returns:
      The catalyst ingredient.
    • getManaToConsume

      public int getManaToConsume()
      Specified by:
      getManaToConsume in interface ManaInfusionRecipe
      Returns:
      How much mana this recipe consumes from the pool.
    • getResultItem

      @NotNull public @NotNull net.minecraft.world.item.ItemStack getResultItem(@NotNull net.minecraft.core.HolderLookup.Provider registries)
      Description copied from interface: ManaInfusionRecipe
      Get the recipe output, used for display (in JEI or the HUD). If ManaInfusionRecipe.getRecipeOutput(net.minecraft.core.RegistryAccess, net.minecraft.world.item.ItemStack) isn't overridden, this is also the actual result of the crafting recipe.
      Specified by:
      getResultItem in interface ManaInfusionRecipe
      Specified by:
      getResultItem in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
      Returns:
      The output stack of the recipe.
    • getIngredients

      @NotNull public @NotNull net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getIngredients()
      Specified by:
      getIngredients in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • getGroup

      @NotNull public @NotNull String getGroup()
      Specified by:
      getGroup in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • getToastSymbol

      @NotNull public @NotNull net.minecraft.world.item.ItemStack getToastSymbol()
      Specified by:
      getToastSymbol in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • getInput

      protected net.minecraft.world.item.crafting.Ingredient getInput()
    • getOutput

      protected net.minecraft.world.item.ItemStack getOutput()