Record Class ArmorData

java.lang.Object
java.lang.Record
com.binaris.wizardry.datagen.help.ArmorData

public record ArmorData(net.minecraft.world.item.Item hat, net.minecraft.world.item.Item chest, net.minecraft.world.item.Item legs, net.minecraft.world.item.Item boots, net.minecraft.world.item.Item defaultHat, net.minecraft.world.item.Item defaultChest, net.minecraft.world.item.Item defaultLegs, net.minecraft.world.item.Item defaultBoots) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArmorData(net.minecraft.world.item.Item hat, net.minecraft.world.item.Item chest, net.minecraft.world.item.Item legs, net.minecraft.world.item.Item boots, net.minecraft.world.item.Item defaultHat, net.minecraft.world.item.Item defaultChest, net.minecraft.world.item.Item defaultLegs, net.minecraft.world.item.Item defaultBoots)
    Creates an instance of a ArmorData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.Item
    Returns the value of the boots record component.
    net.minecraft.world.item.Item
    Returns the value of the chest record component.
    net.minecraft.world.item.Item
    Returns the value of the defaultBoots record component.
    net.minecraft.world.item.Item
    Returns the value of the defaultChest record component.
    net.minecraft.world.item.Item
    Returns the value of the defaultHat record component.
    net.minecraft.world.item.Item
    Returns the value of the defaultLegs record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    net.minecraft.world.item.Item
    hat()
    Returns the value of the hat record component.
    net.minecraft.world.item.Item
    Returns the value of the legs 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
  • Constructor Details

    • ArmorData

      public ArmorData(net.minecraft.world.item.Item hat, net.minecraft.world.item.Item chest, net.minecraft.world.item.Item legs, net.minecraft.world.item.Item boots, net.minecraft.world.item.Item defaultHat, net.minecraft.world.item.Item defaultChest, net.minecraft.world.item.Item defaultLegs, net.minecraft.world.item.Item defaultBoots)
      Creates an instance of a ArmorData record class.
      Parameters:
      hat - the value for the hat record component
      chest - the value for the chest record component
      legs - the value for the legs record component
      boots - the value for the boots record component
      defaultHat - the value for the defaultHat record component
      defaultChest - the value for the defaultChest record component
      defaultLegs - the value for the defaultLegs record component
      defaultBoots - the value for the defaultBoots 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.
    • hat

      public net.minecraft.world.item.Item hat()
      Returns the value of the hat record component.
      Returns:
      the value of the hat record component
    • chest

      public net.minecraft.world.item.Item chest()
      Returns the value of the chest record component.
      Returns:
      the value of the chest record component
    • legs

      public net.minecraft.world.item.Item legs()
      Returns the value of the legs record component.
      Returns:
      the value of the legs record component
    • boots

      public net.minecraft.world.item.Item boots()
      Returns the value of the boots record component.
      Returns:
      the value of the boots record component
    • defaultHat

      public net.minecraft.world.item.Item defaultHat()
      Returns the value of the defaultHat record component.
      Returns:
      the value of the defaultHat record component
    • defaultChest

      public net.minecraft.world.item.Item defaultChest()
      Returns the value of the defaultChest record component.
      Returns:
      the value of the defaultChest record component
    • defaultLegs

      public net.minecraft.world.item.Item defaultLegs()
      Returns the value of the defaultLegs record component.
      Returns:
      the value of the defaultLegs record component
    • defaultBoots

      public net.minecraft.world.item.Item defaultBoots()
      Returns the value of the defaultBoots record component.
      Returns:
      the value of the defaultBoots record component