Record Class EquipmentLayerRenderer.LayerTextureKey
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.entity.layers.EquipmentLayerRenderer.LayerTextureKey
- Enclosing class:
EquipmentLayerRenderer
private static record EquipmentLayerRenderer.LayerTextureKey(EquipmentClientInfo.LayerType layerType, EquipmentClientInfo.Layer layer)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EquipmentClientInfo.LayerThe field for thelayerrecord component.private final EquipmentClientInfo.LayerTypeThe field for thelayerTyperecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLayerTextureKey(EquipmentClientInfo.LayerType layerType, EquipmentClientInfo.Layer layer) Creates an instance of aLayerTextureKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.layer()Returns the value of thelayerrecord component.Returns the value of thelayerTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
layerType
The field for thelayerTyperecord component. -
layer
The field for thelayerrecord component.
-
-
Constructor Details
-
LayerTextureKey
Creates an instance of aLayerTextureKeyrecord class.- Parameters:
layerType- the value for thelayerTyperecord componentlayer- the value for thelayerrecord component
-
-
Method Details
-
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). -
layerType
Returns the value of thelayerTyperecord component.- Returns:
- the value of the
layerTyperecord component
-
layer
Returns the value of thelayerrecord component.- Returns:
- the value of the
layerrecord component
-