Class InfuserRecipe

java.lang.Object
com.pixelmonmod.pixelmon.api.recipe.InfuserRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>

public class InfuserRecipe extends Object implements net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
  • Field Details

    • input

      protected final List<QuantifiedIngredient> input
    • result

      protected final net.minecraft.world.item.ItemStack result
  • Constructor Details

  • Method Details

    • matches

      public boolean matches(net.minecraft.world.Container inv, net.minecraft.world.level.Level worldIn)
      Specified by:
      matches in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
    • assemble

      public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.Container p_44001_, net.minecraft.core.RegistryAccess p_267165_)
      Specified by:
      assemble in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
    • canCraftInDimensions

      public boolean canCraftInDimensions(int width, int height)
      Specified by:
      canCraftInDimensions in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
    • getResultItem

      public net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.RegistryAccess p_267052_)
      Specified by:
      getResultItem in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
    • getSerializer

      @Nonnull public net.minecraft.world.item.crafting.RecipeSerializer<InfuserRecipe> getSerializer()
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
    • getType

      @Nonnull public net.minecraft.world.item.crafting.RecipeType<InfuserRecipe> getType()
      Specified by:
      getType in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
    • getQualifiedIngredients

      public List<QuantifiedIngredient> getQualifiedIngredients()
    • getIngredients

      public 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.Container>
    • getToastSymbol

      public net.minecraft.world.item.ItemStack getToastSymbol()
      When a recipe for the Infuser is discovered, this decides what item is shown in the toast that appears in the top right corner of the screen.
      Specified by:
      getToastSymbol in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
      Returns:
      The ItemStack of a block.