Record Class StarForgeRecipe

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

public record StarForgeRecipe(String group, net.minecraft.world.item.crafting.Ingredient ingot, int ingotCount, net.minecraft.world.item.crafting.Ingredient secondaryMaterial, int secondaryMaterialCount, int smeltTime, net.minecraft.world.item.ItemStack result) extends Record 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 inherited from interface net.minecraft.world.item.crafting.Recipe

    CODEC, CONDITIONAL_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    StarForgeRecipe(String group, net.minecraft.world.item.crafting.Ingredient ingot, int ingotCount, net.minecraft.world.item.crafting.Ingredient secondaryMaterial, int secondaryMaterialCount, int smeltTime, net.minecraft.world.item.ItemStack result)
    Creates an instance of a StarForgeRecipe record class.
  • 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)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
     
    net.minecraft.world.item.ItemStack
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>
     
    net.minecraft.world.item.ItemStack
    getResultItem(net.minecraft.core.RegistryAccess registryAccess)
     
    net.minecraft.world.item.ItemStack
     
    net.minecraft.world.item.crafting.RecipeSerializer<?>
     
    net.minecraft.world.item.ItemStack
     
    net.minecraft.world.item.crafting.RecipeType<?>
     
    Returns the value of the group record component.
    final int
    Returns a hash code value for this object.
    net.minecraft.world.item.crafting.Ingredient
    Returns the value of the ingot record component.
    int
    Returns the value of the ingotCount record component.
    boolean
     
    boolean
    matches(net.minecraft.world.Container container)
     
    boolean
    matches(net.minecraft.world.Container container, net.minecraft.world.level.Level level)
     
    net.minecraft.world.item.ItemStack
    Returns the value of the result record component.
    net.minecraft.world.item.crafting.Ingredient
    Returns the value of the secondaryMaterial record component.
    int
    Returns the value of the secondaryMaterialCount record component.
    int
    Returns the value of the smeltTime 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

    getRemainingItems, isIncomplete, showNotification
  • Constructor Details

    • StarForgeRecipe

      public StarForgeRecipe(String group, net.minecraft.world.item.crafting.Ingredient ingot, int ingotCount, net.minecraft.world.item.crafting.Ingredient secondaryMaterial, int secondaryMaterialCount, int smeltTime, net.minecraft.world.item.ItemStack result)
      Creates an instance of a StarForgeRecipe record class.
      Parameters:
      group - the value for the group record component
      ingot - the value for the ingot record component
      ingotCount - the value for the ingotCount record component
      secondaryMaterial - the value for the secondaryMaterial record component
      secondaryMaterialCount - the value for the secondaryMaterialCount record component
      smeltTime - the value for the smeltTime record component
      result - the value for the result record component
  • 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>
    • matches

      public boolean matches(net.minecraft.world.Container 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>
    • 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()
      Specified by:
      getType in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
    • 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()
      Specified by:
      getIngredients in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
    • getIngot

      public net.minecraft.world.item.ItemStack getIngot()
    • getSecondaryMaterial

      public net.minecraft.world.item.ItemStack getSecondaryMaterial()
    • result

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

      public boolean isSpecial()
      Specified by:
      isSpecial in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
    • 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.
    • group

      public String group()
      Returns the value of the group record component.
      Returns:
      the value of the group record component
    • ingot

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

      public int ingotCount()
      Returns the value of the ingotCount record component.
      Returns:
      the value of the ingotCount record component
    • secondaryMaterial

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

      public int secondaryMaterialCount()
      Returns the value of the secondaryMaterialCount record component.
      Returns:
      the value of the secondaryMaterialCount record component
    • smeltTime

      public int smeltTime()
      Returns the value of the smeltTime record component.
      Returns:
      the value of the smeltTime record component