Record Class EquipmentRenderer.TrimSpriteKey
java.lang.Object
java.lang.Record
net.minecraft.client.render.entity.equipment.EquipmentRenderer.TrimSpriteKey
- Record Components:
trim
-layerType
-equipmentModelId
-
- Enclosing class:
EquipmentRenderer
@Environment(CLIENT)
private static record EquipmentRenderer.TrimSpriteKey(ArmorTrim trim, EquipmentModel.LayerType layerType, Identifier equipmentModelId)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/entity/equipment/EquipmentRenderer$TrimSpriteKey
intermediary net/minecraft/class_10197$class_10199
official gvo$b
named trim
intermediary comp_3199
official a
named layerType
intermediary comp_3200
official b
named equipmentModelId
intermediary comp_3201
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Identifier
The field for theequipmentModelId
record component.private final EquipmentModel.LayerType
The field for thelayerType
record component.private final ArmorTrim
The field for thetrim
record component. -
Constructor Summary
ConstructorDescriptionTrimSpriteKey
(ArmorTrim armorTrim, EquipmentModel.LayerType layerType, Identifier identifier) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theequipmentModelId
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelayerType
record component.final String
toString()
Returns a string representation of this record class.trim()
Returns the value of thetrim
record component.
-
Field Details
-
trim
The field for thetrim
record component. -
layerType
The field for thelayerType
record component. -
equipmentModelId
The field for theequipmentModelId
record component.
-
-
Constructor Details
-
TrimSpriteKey
TrimSpriteKey(ArmorTrim armorTrim, EquipmentModel.LayerType layerType, Identifier identifier)
-
-
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)
. -
trim
Returns the value of thetrim
record component.- Returns:
- the value of the
trim
record component
-
layerType
Returns the value of thelayerType
record component.- Returns:
- the value of the
layerType
record component
-
equipmentModelId
Returns the value of theequipmentModelId
record component.- Returns:
- the value of the
equipmentModelId
record component
-