Package dev.dhyces.trimmed.api.data
Record Class ItemOverrideDataProvider.ArmorSet
java.lang.Object
java.lang.Record
dev.dhyces.trimmed.api.data.ItemOverrideDataProvider.ArmorSet
- Enclosing class:
ItemOverrideDataProvider
public static record ItemOverrideDataProvider.ArmorSet(net.minecraft.world.level.ItemLike helmet, net.minecraft.world.level.ItemLike chestplate, net.minecraft.world.level.ItemLike leggings, net.minecraft.world.level.ItemLike boots)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionArmorSet(net.minecraft.world.level.ItemLike helmet, net.minecraft.world.level.ItemLike chestplate, net.minecraft.world.level.ItemLike leggings, net.minecraft.world.level.ItemLike boots) Creates an instance of aArmorSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.ItemLikeboots()Returns the value of thebootsrecord component.net.minecraft.world.level.ItemLikeReturns the value of thechestplaterecord 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.level.ItemLikehelmet()Returns the value of thehelmetrecord component.net.minecraft.world.level.ItemLikeleggings()Returns the value of theleggingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ArmorSet
public ArmorSet(net.minecraft.world.level.ItemLike helmet, net.minecraft.world.level.ItemLike chestplate, net.minecraft.world.level.ItemLike leggings, net.minecraft.world.level.ItemLike boots) Creates an instance of aArmorSetrecord class.- Parameters:
helmet- the value for thehelmetrecord componentchestplate- the value for thechestplaterecord componentleggings- the value for theleggingsrecord componentboots- the value for thebootsrecord 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). -
helmet
public net.minecraft.world.level.ItemLike helmet()Returns the value of thehelmetrecord component.- Returns:
- the value of the
helmetrecord component
-
chestplate
public net.minecraft.world.level.ItemLike chestplate()Returns the value of thechestplaterecord component.- Returns:
- the value of the
chestplaterecord component
-
leggings
public net.minecraft.world.level.ItemLike leggings()Returns the value of theleggingsrecord component.- Returns:
- the value of the
leggingsrecord component
-
boots
public net.minecraft.world.level.ItemLike boots()Returns the value of thebootsrecord component.- Returns:
- the value of the
bootsrecord component
-