Record Class NetheriteUpgradeSmithingRecipe

java.lang.Object
java.lang.Record
com.wdiscute.starcatcher.recipe.NetheriteUpgradeSmithingRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>, net.minecraft.world.item.crafting.SmithingRecipe

public record NetheriteUpgradeSmithingRecipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient base, net.minecraft.world.item.crafting.Ingredient addition) extends Record implements net.minecraft.world.item.crafting.SmithingRecipe
  • Nested Class Summary

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

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

    CODEC, CONDITIONAL_CODEC, STREAM_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    NetheriteUpgradeSmithingRecipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient base, net.minecraft.world.item.crafting.Ingredient addition)
    Creates an instance of a NetheriteUpgradeSmithingRecipe record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.crafting.Ingredient
    Returns the value of the addition record component.
    net.minecraft.world.item.ItemStack
    assemble(net.minecraft.world.item.crafting.SmithingRecipeInput input, net.minecraft.core.HolderLookup.Provider registries)
     
    net.minecraft.world.item.crafting.Ingredient
    Returns the value of the base record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraft.world.item.ItemStack
    getResultItem(net.minecraft.core.HolderLookup.Provider registries)
     
    net.minecraft.world.item.crafting.RecipeSerializer<?>
     
    net.minecraft.world.item.crafting.RecipeType<?>
     
    final int
    Returns a hash code value for this object.
    boolean
    isAdditionIngredient(net.minecraft.world.item.ItemStack stack)
     
    boolean
    isBaseIngredient(net.minecraft.world.item.ItemStack stack)
     
    boolean
     
    boolean
    isTemplateIngredient(net.minecraft.world.item.ItemStack stack)
     
    boolean
    matches(net.minecraft.world.item.crafting.SmithingRecipeInput input, net.minecraft.world.level.Level level)
     
    net.minecraft.world.item.crafting.Ingredient
    Returns the value of the template record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

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

    getGroup, getIngredients, getRemainingItems, isSpecial, showNotification

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

    canCraftInDimensions, getToastSymbol
  • Constructor Details

    • NetheriteUpgradeSmithingRecipe

      public NetheriteUpgradeSmithingRecipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient base, net.minecraft.world.item.crafting.Ingredient addition)
      Creates an instance of a NetheriteUpgradeSmithingRecipe record class.
      Parameters:
      template - the value for the template record component
      base - the value for the base record component
      addition - the value for the addition record component
  • Method Details

    • matches

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

      public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.item.crafting.SmithingRecipeInput input, net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      assemble in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>
    • isTemplateIngredient

      public boolean isTemplateIngredient(net.minecraft.world.item.ItemStack stack)
      Specified by:
      isTemplateIngredient in interface net.minecraft.world.item.crafting.SmithingRecipe
    • isBaseIngredient

      public boolean isBaseIngredient(net.minecraft.world.item.ItemStack stack)
      Specified by:
      isBaseIngredient in interface net.minecraft.world.item.crafting.SmithingRecipe
    • isAdditionIngredient

      public boolean isAdditionIngredient(net.minecraft.world.item.ItemStack stack)
      Specified by:
      isAdditionIngredient in interface net.minecraft.world.item.crafting.SmithingRecipe
    • getResultItem

      public net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      getResultItem in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>
    • getSerializer

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

      public net.minecraft.world.item.crafting.RecipeType<?> getType()
      Specified by:
      getType in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>
      Specified by:
      getType in interface net.minecraft.world.item.crafting.SmithingRecipe
    • isIncomplete

      public boolean isIncomplete()
      Specified by:
      isIncomplete in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • template

      public net.minecraft.world.item.crafting.Ingredient template()
      Returns the value of the template record component.
      Returns:
      the value of the template record component
    • base

      public net.minecraft.world.item.crafting.Ingredient base()
      Returns the value of the base record component.
      Returns:
      the value of the base record component
    • addition

      public net.minecraft.world.item.crafting.Ingredient addition()
      Returns the value of the addition record component.
      Returns:
      the value of the addition record component