Record Class EquipmentLayerRenderer.TrimTextureKey
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.entity.layers.EquipmentLayerRenderer.TrimTextureKey
- Enclosing class:
EquipmentLayerRenderer
private static record EquipmentLayerRenderer.TrimTextureKey(ArmorTrim trim, EquipmentClientInfo.LayerType layerType, EquipmentClientInfo equipmentInfo)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EquipmentClientInfoThe field for theequipmentInforecord component.private final EquipmentClientInfo.LayerTypeThe field for thelayerTyperecord component.private final ArmorTrimThe field for thetrimrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTrimTextureKey(ArmorTrim trim, EquipmentClientInfo.LayerType layerType, EquipmentClientInfo equipmentInfo) Creates an instance of aTrimTextureKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionprivate static PalettedTextureManager.HandlecreateTextureWithNoPalette(Identifier texture) final booleanIndicates whether some other object is "equal to" this one.Returns the value of theequipmentInforecord component.private PalettedTextureManager.HandlegetOrPrepareTexture(PalettedTextureManager palettedTextures) final inthashCode()Returns a hash code value for this object.Returns the value of thelayerTyperecord component.final StringtoString()Returns a string representation of this record class.trim()Returns the value of thetrimrecord component.
-
Field Details
-
trim
The field for thetrimrecord component. -
layerType
The field for thelayerTyperecord component. -
equipmentInfo
The field for theequipmentInforecord component.
-
-
Constructor Details
-
TrimTextureKey
private TrimTextureKey(ArmorTrim trim, EquipmentClientInfo.LayerType layerType, EquipmentClientInfo equipmentInfo) Creates an instance of aTrimTextureKeyrecord class.- Parameters:
trim- the value for thetrimrecord componentlayerType- the value for thelayerTyperecord componentequipmentInfo- the value for theequipmentInforecord component
-
-
Method Details
-
getOrPrepareTexture
-
createTextureWithNoPalette
-
toString
-
hashCode
-
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 thetrimrecord component.- Returns:
- the value of the
trimrecord component
-
layerType
Returns the value of thelayerTyperecord component.- Returns:
- the value of the
layerTyperecord component
-
equipmentInfo
Returns the value of theequipmentInforecord component.- Returns:
- the value of the
equipmentInforecord component
-