Record Class ArmorTrimMaterial
java.lang.Object
java.lang.Record
net.minecraft.item.equipment.trim.ArmorTrimMaterial
- Record Components:
- assetName-
- ingredient-
- overrideArmorAssets-
- description-
public record ArmorTrimMaterial(String assetName, RegistryEntry<Item> ingredient, Map<RegistryKey<EquipmentAsset>,String> overrideArmorAssets, Text description)
extends Record 
- Mappings:
- Namespace - Name - named - net/minecraft/item/equipment/trim/ArmorTrimMaterial- intermediary - net/minecraft/class_8054- official - dey- named - assetName- intermediary - comp_1208- official - e- named - ingredient- intermediary - comp_1209- official - f- named - overrideArmorAssets- intermediary - comp_1237- official - g- named - description- intermediary - comp_1212- official - h
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final StringThe field for theassetNamerecord component.static final com.mojang.serialization.Codec<ArmorTrimMaterial> private final TextThe field for thedescriptionrecord component.static final com.mojang.serialization.Codec<RegistryEntry<ArmorTrimMaterial>> static final PacketCodec<RegistryByteBuf, RegistryEntry<ArmorTrimMaterial>> private final RegistryEntry<Item> The field for theingredientrecord component.private final Map<RegistryKey<EquipmentAsset>, String> The field for theoverrideArmorAssetsrecord component.static final PacketCodec<RegistryByteBuf, ArmorTrimMaterial> 
- 
Constructor SummaryConstructorsConstructorDescriptionArmorTrimMaterial(String string, RegistryEntry<Item> registryEntry, Map<RegistryKey<EquipmentAsset>, String> map, Text text) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theassetNamerecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theingredientrecord component.static ArmorTrimMaterialof(String assetName, Item ingredient, Text description, Map<RegistryKey<EquipmentAsset>, String> overrideArmorAssets) Returns the value of theoverrideArmorAssetsrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
assetNameThe field for theassetNamerecord component.
- 
ingredientThe field for theingredientrecord component.
- 
overrideArmorAssetsThe field for theoverrideArmorAssetsrecord component.
- 
descriptionThe field for thedescriptionrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/item/equipment/trim/ArmorTrimMaterial;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_42002- Lnet/minecraft/class_8054;field_42002:Lcom/mojang/serialization/Codec;- official - a- Ldey;a:Lcom/mojang/serialization/Codec;
 
- 
PACKET_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - PACKET_CODEC- Lnet/minecraft/item/equipment/trim/ArmorTrimMaterial;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;- intermediary - field_49280- Lnet/minecraft/class_8054;field_49280:Lnet/minecraft/class_9139;- official - b- Ldey;b:Lyn;
 
- 
ENTRY_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - ENTRY_CODEC- Lnet/minecraft/item/equipment/trim/ArmorTrimMaterial;ENTRY_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_42003- Lnet/minecraft/class_8054;field_42003:Lcom/mojang/serialization/Codec;- official - c- Ldey;c:Lcom/mojang/serialization/Codec;
 
- 
ENTRY_PACKET_CODECpublic static final PacketCodec<RegistryByteBuf,RegistryEntry<ArmorTrimMaterial>> ENTRY_PACKET_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - ENTRY_PACKET_CODEC- Lnet/minecraft/item/equipment/trim/ArmorTrimMaterial;ENTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;- intermediary - field_49281- Lnet/minecraft/class_8054;field_49281:Lnet/minecraft/class_9139;- official - d- Ldey;d:Lyn;
 
 
- 
- 
Constructor Details- 
ArmorTrimMaterialpublic ArmorTrimMaterial(String string, RegistryEntry<Item> registryEntry, Map<RegistryKey<EquipmentAsset>, String> map, Text text) 
 
- 
- 
Method Details- 
ofpublic static ArmorTrimMaterial of(String assetName, Item ingredient, Text description, Map<RegistryKey<EquipmentAsset>, String> overrideArmorAssets) - Mappings:
- Namespace - Name - Mixin selector - named - of- Lnet/minecraft/item/equipment/trim/ArmorTrimMaterial;of(Ljava/lang/String;Lnet/minecraft/item/Item;Lnet/minecraft/text/Text;Ljava/util/Map;)Lnet/minecraft/item/equipment/trim/ArmorTrimMaterial;- intermediary - method_48438- Lnet/minecraft/class_8054;method_48438(Ljava/lang/String;Lnet/minecraft/class_1792;Lnet/minecraft/class_2561;Ljava/util/Map;)Lnet/minecraft/class_8054;- official - a- Ldey;a(Ljava/lang/String;Lcwm;Lwp;Ljava/util/Map;)Ldey;
 
- 
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).
- 
assetNameReturns the value of theassetNamerecord component.- Returns:
- the value of the assetNamerecord component
 
- 
ingredientReturns the value of theingredientrecord component.- Returns:
- the value of the ingredientrecord component
 
- 
overrideArmorAssetsReturns the value of theoverrideArmorAssetsrecord component.- Returns:
- the value of the overrideArmorAssetsrecord component
 
- 
descriptionReturns the value of thedescriptionrecord component.- Returns:
- the value of the descriptionrecord component
 
 
-