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
ConstructorsConstructorDescriptionArmorData(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 aArmorDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.Itemboots()Returns the value of thebootsrecord component.net.minecraft.world.item.Itemchest()Returns the value of thechestrecord component.net.minecraft.world.item.ItemReturns the value of thedefaultBootsrecord component.net.minecraft.world.item.ItemReturns the value of thedefaultChestrecord component.net.minecraft.world.item.ItemReturns the value of thedefaultHatrecord component.net.minecraft.world.item.ItemReturns the value of thedefaultLegsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.item.Itemhat()Returns the value of thehatrecord component.net.minecraft.world.item.Itemlegs()Returns the value of thelegsrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aArmorDatarecord class.- Parameters:
hat- the value for thehatrecord componentchest- the value for thechestrecord componentlegs- the value for thelegsrecord componentboots- the value for thebootsrecord componentdefaultHat- the value for thedefaultHatrecord componentdefaultChest- the value for thedefaultChestrecord componentdefaultLegs- the value for thedefaultLegsrecord componentdefaultBoots- the value for thedefaultBootsrecord component
-
-
Method Details
-
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). -
hat
public net.minecraft.world.item.Item hat()Returns the value of thehatrecord component.- Returns:
- the value of the
hatrecord component
-
chest
public net.minecraft.world.item.Item chest()Returns the value of thechestrecord component.- Returns:
- the value of the
chestrecord component
-
legs
public net.minecraft.world.item.Item legs()Returns the value of thelegsrecord component.- Returns:
- the value of the
legsrecord component
-
boots
public net.minecraft.world.item.Item boots()Returns the value of thebootsrecord component.- Returns:
- the value of the
bootsrecord component
-
defaultHat
public net.minecraft.world.item.Item defaultHat()Returns the value of thedefaultHatrecord component.- Returns:
- the value of the
defaultHatrecord component
-
defaultChest
public net.minecraft.world.item.Item defaultChest()Returns the value of thedefaultChestrecord component.- Returns:
- the value of the
defaultChestrecord component
-
defaultLegs
public net.minecraft.world.item.Item defaultLegs()Returns the value of thedefaultLegsrecord component.- Returns:
- the value of the
defaultLegsrecord component
-
defaultBoots
public net.minecraft.world.item.Item defaultBoots()Returns the value of thedefaultBootsrecord component.- Returns:
- the value of the
defaultBootsrecord component
-