Record Class EquipmentSet.SmithingRecipes

java.lang.Object
java.lang.Record
net.rebel459.unified.api.data.set.EquipmentSet.SmithingRecipes
Enclosing class:
EquipmentSet

public static record EquipmentSet.SmithingRecipes(Supplier<? extends net.minecraft.world.level.ItemLike> template, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> sword, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> spear, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> axe, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> pickaxe, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> shovel, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> hoe, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> helmet, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> chestplate, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> leggings, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> boots, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> horseArmor, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> nautilusArmor) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    SmithingRecipes(Supplier<? extends net.minecraft.world.level.ItemLike> template, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> sword, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> spear, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> axe, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> pickaxe, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> shovel, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> hoe, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> helmet, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> chestplate, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> leggings, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> boots, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> horseArmor, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> nautilusArmor)
    Creates an instance of a SmithingRecipes record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Supplier<? extends net.minecraft.world.level.ItemLike>
    axe()
    Returns the value of the axe record component.
    @Nullable Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the boots record component.
    @Nullable Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the chestplate record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @Nullable Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the helmet record component.
    @Nullable Supplier<? extends net.minecraft.world.level.ItemLike>
    hoe()
    Returns the value of the hoe record component.
    @Nullable Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the horseArmor record component.
    @Nullable Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the leggings record component.
    net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
    Returns the value of the material record component.
    @Nullable Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the nautilusArmor record component.
    @Nullable Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the pickaxe record component.
    @Nullable Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the shovel record component.
    @Nullable Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the spear record component.
    @Nullable Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the sword record component.
    Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the template record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SmithingRecipes

      public SmithingRecipes(Supplier<? extends net.minecraft.world.level.ItemLike> template, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> sword, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> spear, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> axe, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> pickaxe, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> shovel, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> hoe, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> helmet, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> chestplate, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> leggings, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> boots, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> horseArmor, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> nautilusArmor)
      Creates an instance of a SmithingRecipes record class.
      Parameters:
      template - the value for the template record component
      material - the value for the material record component
      sword - the value for the sword record component
      spear - the value for the spear record component
      axe - the value for the axe record component
      pickaxe - the value for the pickaxe record component
      shovel - the value for the shovel record component
      hoe - the value for the hoe record component
      helmet - the value for the helmet record component
      chestplate - the value for the chestplate record component
      leggings - the value for the leggings record component
      boots - the value for the boots record component
      horseArmor - the value for the horseArmor record component
      nautilusArmor - the value for the nautilusArmor record component
  • Method Details

    • 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 Supplier<? extends net.minecraft.world.level.ItemLike> template()
      Returns the value of the template record component.
      Returns:
      the value of the template record component
    • material

      public net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material()
      Returns the value of the material record component.
      Returns:
      the value of the material record component
    • sword

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> sword()
      Returns the value of the sword record component.
      Returns:
      the value of the sword record component
    • spear

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> spear()
      Returns the value of the spear record component.
      Returns:
      the value of the spear record component
    • axe

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> axe()
      Returns the value of the axe record component.
      Returns:
      the value of the axe record component
    • pickaxe

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> pickaxe()
      Returns the value of the pickaxe record component.
      Returns:
      the value of the pickaxe record component
    • shovel

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> shovel()
      Returns the value of the shovel record component.
      Returns:
      the value of the shovel record component
    • hoe

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> hoe()
      Returns the value of the hoe record component.
      Returns:
      the value of the hoe record component
    • helmet

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> helmet()
      Returns the value of the helmet record component.
      Returns:
      the value of the helmet record component
    • chestplate

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> chestplate()
      Returns the value of the chestplate record component.
      Returns:
      the value of the chestplate record component
    • leggings

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> leggings()
      Returns the value of the leggings record component.
      Returns:
      the value of the leggings record component
    • boots

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> boots()
      Returns the value of the boots record component.
      Returns:
      the value of the boots record component
    • horseArmor

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> horseArmor()
      Returns the value of the horseArmor record component.
      Returns:
      the value of the horseArmor record component
    • nautilusArmor

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> nautilusArmor()
      Returns the value of the nautilusArmor record component.
      Returns:
      the value of the nautilusArmor record component