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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionTrimSpriteKey(ArmorTrim armorTrim, EquipmentModel.LayerType layerType, RegistryKey<EquipmentAsset> registryKey) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theequipmentAssetIdrecord component.private static StringgetAssetName(RegistryEntry<ArmorTrimMaterial> material, RegistryKey<EquipmentAsset> assetKey) 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- 
trimThe field for thetrimrecord component.
- 
layerTypeThe field for thelayerTyperecord component.
- 
equipmentAssetIdThe field for theequipmentAssetIdrecord component.
 
- 
- 
Constructor Details- 
TrimSpriteKeyTrimSpriteKey(ArmorTrim armorTrim, EquipmentModel.LayerType layerType, RegistryKey<EquipmentAsset> registryKey) 
 
- 
- 
Method Details- 
getAssetNameprivate 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;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
trimReturns the value of thetrimrecord component.- Returns:
- the value of the trimrecord component
 
- 
layerTypeReturns the value of thelayerTyperecord component.- Returns:
- the value of the layerTyperecord component
 
- 
equipmentAssetIdReturns the value of theequipmentAssetIdrecord component.- Returns:
- the value of the equipmentAssetIdrecord component
 
 
-