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
ConstructorsConstructorDescriptionArmorSet
(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 aArmorSet
record class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraftforge.registries.RegistryObject<UBootsItem>
boots()
Returns the value of theboots
record component.net.minecraftforge.registries.RegistryObject<UChestplateItem>
Returns the value of thechestplate
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.net.minecraftforge.registries.RegistryObject<UHelmetItem>
helmet()
Returns the value of thehelmet
record component.Iterator<net.minecraftforge.registries.RegistryObject<? extends UArmorItem>>
iterator()
net.minecraftforge.registries.RegistryObject<ULeggingsItem>
leggings()
Returns the value of theleggings
record component.final String
toString()
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 aArmorSet
record class.- Parameters:
helmet
- the value for thehelmet
record componentchestplate
- the value for thechestplate
record componentleggings
- the value for theleggings
record componentboots
- the value for theboots
record component
-
-
Method Details
-
iterator
- Specified by:
iterator
in interfaceIterable<net.minecraftforge.registries.RegistryObject<? extends UArmorItem>>
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
helmet
Returns the value of thehelmet
record component.- Returns:
- the value of the
helmet
record component
-
chestplate
Returns the value of thechestplate
record component.- Returns:
- the value of the
chestplate
record component
-
leggings
Returns the value of theleggings
record component.- Returns:
- the value of the
leggings
record component
-
boots
Returns the value of theboots
record component.- Returns:
- the value of the
boots
record component
-