Record Class EquipmentRenderer.TrimSpriteKey
java.lang.Object
java.lang.Record
net.minecraft.client.render.entity.equipment.EquipmentRenderer.TrimSpriteKey
- Record Components:
trim-layerType-equipmentAssetId-
- Enclosing class:
EquipmentRenderer
@Environment(CLIENT)
private static record EquipmentRenderer.TrimSpriteKey(ArmorTrim trim, EquipmentModel.LayerType layerType, RegistryKey<EquipmentAsset> equipmentAssetId)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/entity/equipment/EquipmentRenderer$TrimSpriteKeyintermediary net/minecraft/class_10197$class_10199official hbu$bnamed trimintermediary comp_3199official anamed layerTypeintermediary comp_3200official bnamed equipmentAssetIdintermediary comp_3201official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryKey<EquipmentAsset> The field for theequipmentAssetIdrecord component.private final EquipmentModel.LayerTypeThe field for thelayerTyperecord component.private final ArmorTrimThe field for thetrimrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTrimSpriteKey(ArmorTrim armorTrim, EquipmentModel.LayerType layerType, RegistryKey<EquipmentAsset> registryKey) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theequipmentAssetIdrecord component.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. -
equipmentAssetId
The field for theequipmentAssetIdrecord component.
-
-
Constructor Details
-
TrimSpriteKey
TrimSpriteKey(ArmorTrim armorTrim, EquipmentModel.LayerType layerType, RegistryKey<EquipmentAsset> registryKey)
-
-
Method Details
-
getTexture
- Mappings:
Namespace Name Mixin selector named getTextureLnet/minecraft/client/render/entity/equipment/EquipmentRenderer$TrimSpriteKey;getTexture()Lnet/minecraft/util/Identifier;intermediary method_65573Lnet/minecraft/class_10197$class_10199;method_65573()Lnet/minecraft/class_2960;official aLhbu$b;a()Lalr;
-
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 thetrimrecord component.- Returns:
- the value of the
trimrecord component
-
layerType
Returns the value of thelayerTyperecord component.- Returns:
- the value of the
layerTyperecord component
-
equipmentAssetId
Returns the value of theequipmentAssetIdrecord component.- Returns:
- the value of the
equipmentAssetIdrecord component
-