Record Class ArmorSet

java.lang.Object
java.lang.Record
info.u_team.u_team_core.item.armor.ArmorSet
All Implemented Interfaces:
Iterable<RegistryEntry<? extends UArmorItem>>

public record ArmorSet(RegistryEntry<UHelmetItem> helmet, RegistryEntry<UChestplateItem> chestplate, RegistryEntry<ULeggingsItem> leggings, RegistryEntry<UBootsItem> boots) extends Record implements Iterable<RegistryEntry<? extends UArmorItem>>
  • Constructor Details

  • Method Details

    • iterator

      public Iterator<RegistryEntry<? extends UArmorItem>> iterator()
      Specified by:
      iterator in interface Iterable<RegistryEntry<? extends UArmorItem>>
    • 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.
    • helmet

      public RegistryEntry<UHelmetItem> helmet()
      Returns the value of the helmet record component.
      Returns:
      the value of the helmet record component
    • chestplate

      public RegistryEntry<UChestplateItem> chestplate()
      Returns the value of the chestplate record component.
      Returns:
      the value of the chestplate record component
    • leggings

      public RegistryEntry<ULeggingsItem> leggings()
      Returns the value of the leggings record component.
      Returns:
      the value of the leggings record component
    • boots

      public RegistryEntry<UBootsItem> boots()
      Returns the value of the boots record component.
      Returns:
      the value of the boots record component