Record Class ArmorSet

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

public record ArmorSet(net.minecraftforge.registries.RegistryObject<UHelmetItem> helmet, net.minecraftforge.registries.RegistryObject<UChestplateItem> chestplate, net.minecraftforge.registries.RegistryObject<ULeggingsItem> leggings, net.minecraftforge.registries.RegistryObject<UBootsItem> boots) extends Record implements Iterable<net.minecraftforge.registries.RegistryObject<? extends UArmorItem>>
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArmorSet(net.minecraftforge.registries.RegistryObject<UHelmetItem> helmet, net.minecraftforge.registries.RegistryObject<UChestplateItem> chestplate, net.minecraftforge.registries.RegistryObject<ULeggingsItem> leggings, net.minecraftforge.registries.RegistryObject<UBootsItem> boots)
    Creates an instance of a ArmorSet record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraftforge.registries.RegistryObject<UBootsItem>
    Returns the value of the boots record component.
    net.minecraftforge.registries.RegistryObject<UChestplateItem>
    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.
    net.minecraftforge.registries.RegistryObject<UHelmetItem>
    Returns the value of the helmet record component.
    Iterator<net.minecraftforge.registries.RegistryObject<? extends UArmorItem>>
     
    net.minecraftforge.registries.RegistryObject<ULeggingsItem>
    Returns the value of the leggings 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 java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • ArmorSet

      public ArmorSet(net.minecraftforge.registries.RegistryObject<UHelmetItem> helmet, net.minecraftforge.registries.RegistryObject<UChestplateItem> chestplate, net.minecraftforge.registries.RegistryObject<ULeggingsItem> leggings, net.minecraftforge.registries.RegistryObject<UBootsItem> boots)
      Creates an instance of a ArmorSet record class.
      Parameters:
      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
  • Method Details

    • iterator

      public Iterator<net.minecraftforge.registries.RegistryObject<? extends UArmorItem>> iterator()
      Specified by:
      iterator in interface Iterable<net.minecraftforge.registries.RegistryObject<? 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 net.minecraftforge.registries.RegistryObject<UHelmetItem> helmet()
      Returns the value of the helmet record component.
      Returns:
      the value of the helmet record component
    • chestplate

      public net.minecraftforge.registries.RegistryObject<UChestplateItem> chestplate()
      Returns the value of the chestplate record component.
      Returns:
      the value of the chestplate record component
    • leggings

      public net.minecraftforge.registries.RegistryObject<ULeggingsItem> leggings()
      Returns the value of the leggings record component.
      Returns:
      the value of the leggings record component
    • boots

      public net.minecraftforge.registries.RegistryObject<UBootsItem> boots()
      Returns the value of the boots record component.
      Returns:
      the value of the boots record component