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

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     

    Fields inherited from interface net.minecraft.world.item.crafting.Recipe

    CODEC, STREAM_CODEC
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.world.item.ItemStack
    assemble(net.minecraft.world.item.crafting.RecipeInput inv, net.minecraft.core.HolderLookup.Provider registries)
     
    default boolean
    canCraftInDimensions(int width, int height)
     
    int
     
    Get the catalyst that must be under the Mana Pool for this recipe, or null if it can be anything.
    default net.minecraft.world.item.ItemStack
    getRecipeOutput(net.minecraft.core.RegistryAccess registries, net.minecraft.world.item.ItemStack input)
    Get the actual recipe output, not just for display.
    net.minecraft.world.item.ItemStack
    getResultItem(net.minecraft.core.HolderLookup.Provider registries)
    Get the recipe output, used for display (in JEI or the HUD).
    default net.minecraft.world.item.crafting.RecipeType<?>
     
    default boolean
     
    default boolean
    matches(net.minecraft.world.item.crafting.RecipeInput inv, net.minecraft.world.level.Level world)
     
    boolean
    matches(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

      net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.HolderLookup.Provider registries)
      Get the recipe output, used for display (in JEI or the HUD). If 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 net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
      Returns:
      The output stack of the recipe.
    • getRecipeOutput

      default net.minecraft.world.item.ItemStack getRecipeOutput(net.minecraft.core.RegistryAccess registries, net.minecraft.world.item.ItemStack input)
      Get the actual recipe output, not just for display. Defaults to a copy of getResultItem(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

      StateIngredient getRecipeCatalyst()
      Get the catalyst that must be under the Mana Pool for this recipe, or null if it can be anything.
      Returns:
      The catalyst ingredient.
    • getManaToConsume

      int getManaToConsume()
      Returns:
      How much mana this recipe consumes from the pool.
    • getType

      default net.minecraft.world.item.crafting.RecipeType<?> getType()
      Specified by:
      getType in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • assemble

      default net.minecraft.world.item.ItemStack assemble(net.minecraft.world.item.crafting.RecipeInput inv, net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      assemble in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • matches

      default boolean matches(net.minecraft.world.item.crafting.RecipeInput inv, net.minecraft.world.level.Level world)
      Specified by:
      matches in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • canCraftInDimensions

      default boolean canCraftInDimensions(int width, int height)
      Specified by:
      canCraftInDimensions in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • isSpecial

      default boolean isSpecial()
      Specified by:
      isSpecial in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>