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$TrimSpriteKey
intermediary net/minecraft/class_10197$class_10199
official gwe$b
named trim
intermediary comp_3199
official a
named layerType
intermediary comp_3200
official b
named equipmentAssetId
intermediary comp_3201
official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryKey
<EquipmentAsset> The field for theequipmentAssetId
record component.private final EquipmentModel.LayerType
The field for thelayerType
record component.private final ArmorTrim
The field for thetrim
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTrimSpriteKey
(ArmorTrim armorTrim, EquipmentModel.LayerType layerType, RegistryKey<EquipmentAsset> registryKey) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theequipmentAssetId
record component.private static String
getAssetName
(RegistryEntry<ArmorTrimMaterial> material, RegistryKey<EquipmentAsset> assetKey) 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. -
equipmentAssetId
The field for theequipmentAssetId
record component.
-
-
Constructor Details
-
TrimSpriteKey
TrimSpriteKey(ArmorTrim armorTrim, EquipmentModel.LayerType layerType, RegistryKey<EquipmentAsset> registryKey)
-
-
Method Details
-
getAssetName
private static String getAssetName(RegistryEntry<ArmorTrimMaterial> material, RegistryKey<EquipmentAsset> assetKey) - Mappings:
Namespace Name Mixin selector named getAssetName
Lnet/minecraft/client/render/entity/equipment/EquipmentRenderer$TrimSpriteKey;getAssetName(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/registry/RegistryKey;)Ljava/lang/String;
intermediary method_65575
Lnet/minecraft/class_10197$class_10199;method_65575(Lnet/minecraft/class_6880;Lnet/minecraft/class_5321;)Ljava/lang/String;
official a
Lgwe$b;a(Ljr;Laku;)Ljava/lang/String;
-
getTexture
- Mappings:
Namespace Name Mixin selector named getTexture
Lnet/minecraft/client/render/entity/equipment/EquipmentRenderer$TrimSpriteKey;getTexture()Lnet/minecraft/util/Identifier;
intermediary method_65573
Lnet/minecraft/class_10197$class_10199;method_65573()Lnet/minecraft/class_2960;
official a
Lgwe$b;a()Lakv;
-
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
-
equipmentAssetId
Returns the value of theequipmentAssetId
record component.- Returns:
- the value of the
equipmentAssetId
record component
-