Class AstralCrystalRecipe

java.lang.Object
tech.anonymoushacker1279.immersiveweapons.item.crafting.AstralCrystalRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>

public class AstralCrystalRecipe extends Object implements net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final String
     
    protected final net.minecraft.world.item.crafting.Ingredient
     
    protected final net.minecraft.world.item.ItemStack
     
    protected final net.minecraft.world.item.crafting.Ingredient
     

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

    CODEC, CONDITIONAL_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    AstralCrystalRecipe(String group, net.minecraft.world.item.crafting.Ingredient primaryMaterial, net.minecraft.world.item.crafting.Ingredient secondaryMaterial, net.minecraft.world.item.ItemStack itemStack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    assemble(net.minecraft.world.Container container, net.minecraft.core.RegistryAccess registryAccess)
     
    boolean
    canCraftInDimensions(int width, int height)
     
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>
    Get the recipe's ingredients.
    net.minecraft.world.item.crafting.Ingredient
     
    net.minecraft.world.item.ItemStack
    getResultItem(net.minecraft.core.RegistryAccess registryAccess)
     
    net.minecraft.world.item.crafting.Ingredient
     
    net.minecraft.world.item.crafting.RecipeSerializer<?>
     
    net.minecraft.world.item.ItemStack
     
    net.minecraft.world.item.crafting.RecipeType<?>
    Get the recipe type.
    boolean
     
    boolean
    matches(net.minecraft.world.Container container, net.minecraft.world.level.Level level)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    getRemainingItems, isIncomplete, showNotification
  • Field Details

    • primaryMaterial

      protected final net.minecraft.world.item.crafting.Ingredient primaryMaterial
    • secondaryMaterial

      protected final net.minecraft.world.item.crafting.Ingredient secondaryMaterial
    • result

      protected final net.minecraft.world.item.ItemStack result
    • group

      protected final String group
  • Constructor Details

    • AstralCrystalRecipe

      public AstralCrystalRecipe(String group, net.minecraft.world.item.crafting.Ingredient primaryMaterial, net.minecraft.world.item.crafting.Ingredient secondaryMaterial, net.minecraft.world.item.ItemStack itemStack)
  • Method Details

    • matches

      public boolean matches(net.minecraft.world.Container container, net.minecraft.world.level.Level level)
      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 container, net.minecraft.core.RegistryAccess registryAccess)
      Specified by:
      assemble in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
    • getResultItem

      public net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.RegistryAccess registryAccess)
      Specified by:
      getResultItem 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>
    • getPrimaryMaterial

      public net.minecraft.world.item.crafting.Ingredient getPrimaryMaterial()
    • getSecondaryMaterial

      public net.minecraft.world.item.crafting.Ingredient getSecondaryMaterial()
    • getToastSymbol

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

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

      public net.minecraft.world.item.crafting.RecipeType<?> getType()
      Get the recipe type.
      Specified by:
      getType in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
      Returns:
      RecipeType
    • getGroup

      public String getGroup()
      Specified by:
      getGroup in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
    • getIngredients

      public net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getIngredients()
      Get the recipe's ingredients.
      Specified by:
      getIngredients in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
      Returns:
      NonNullList extending Ingredient
    • isSpecial

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