Record Class StarcatcherRodRecipe

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

public record StarcatcherRodRecipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient rod, net.minecraft.world.item.crafting.Ingredient material, net.minecraft.world.item.ItemStack result, boolean addText, boolean keepStack, boolean applySkin) 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
    StarcatcherRodRecipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient rod, net.minecraft.world.item.crafting.Ingredient material, net.minecraft.world.item.ItemStack result, boolean addText, boolean keepStack, boolean applySkin)
    Creates an instance of a StarcatcherRodRecipe record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the addText record component.
    boolean
    Returns the value of the applySkin 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.ItemStack
    assembledwad(net.minecraft.world.item.crafting.SmithingRecipeInput input)
     
    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
    Returns the value of the keepStack record component.
    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 material record component.
    net.minecraft.world.item.ItemStack
    Returns the value of the result record component.
    net.minecraft.world.item.crafting.Ingredient
    rod()
    Returns the value of the rod record component.
    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

    • StarcatcherRodRecipe

      public StarcatcherRodRecipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient rod, net.minecraft.world.item.crafting.Ingredient material, net.minecraft.world.item.ItemStack result, boolean addText, boolean keepStack, boolean applySkin)
      Creates an instance of a StarcatcherRodRecipe record class.
      Parameters:
      template - the value for the template record component
      rod - the value for the rod record component
      material - the value for the material record component
      result - the value for the result record component
      addText - the value for the addText record component
      keepStack - the value for the keepStack record component
      applySkin - the value for the applySkin 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>
    • assembledwad

      public net.minecraft.world.item.ItemStack assembledwad(net.minecraft.world.item.crafting.SmithingRecipeInput input)
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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
    • rod

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

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

      public net.minecraft.world.item.ItemStack result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component
    • addText

      public boolean addText()
      Returns the value of the addText record component.
      Returns:
      the value of the addText record component
    • keepStack

      public boolean keepStack()
      Returns the value of the keepStack record component.
      Returns:
      the value of the keepStack record component
    • applySkin

      public boolean applySkin()
      Returns the value of the applySkin record component.
      Returns:
      the value of the applySkin record component