Package net.minecraft.item.trim
Record Class ArmorTrimPattern
java.lang.Object
java.lang.Record
net.minecraft.item.trim.ArmorTrimPattern
- Record Components:
- assetId-
- templateItem-
- description-
public record ArmorTrimPattern(Identifier assetId, RegistryEntry<Item> templateItem, Text description)
extends Record
- Mappings:
- Namespace - Name - official - cie- intermediary - net/minecraft/class_8056- named - net/minecraft/item/trim/ArmorTrimPattern- official - c- intermediary - comp_1213- named - assetId- official - d- intermediary - comp_1214- named - templateItem- official - e- intermediary - comp_1215- named - description
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theassetIdrecord component.static final com.mojang.serialization.Codec<ArmorTrimPattern>private final TextThe field for thedescriptionrecord component.static final com.mojang.serialization.Codec<RegistryEntry<ArmorTrimPattern>>private final RegistryEntry<Item>The field for thetemplateItemrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionArmorTrimPattern(Identifier identifier, RegistryEntry<Item> registryEntry, Text text) 
- 
Method SummaryModifier and TypeMethodDescriptionassetId()Returns the value of theassetIdrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.getDescription(RegistryEntry<ArmorTrimMaterial> material) final inthashCode()Returns a hash code value for this object.Returns the value of thetemplateItemrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
assetIdThe field for theassetIdrecord component.
- 
templateItemThe field for thetemplateItemrecord component.
- 
descriptionThe field for thedescriptionrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcie;a:Lcom/mojang/serialization/Codec;- intermediary - field_42014- Lnet/minecraft/class_8056;field_42014:Lcom/mojang/serialization/Codec;- named - CODEC- Lnet/minecraft/item/trim/ArmorTrimPattern;CODEC:Lcom/mojang/serialization/Codec;
 
- 
ENTRY_CODEC- Mappings:
- Namespace - Name - Mixin selector - official - b- Lcie;b:Lcom/mojang/serialization/Codec;- intermediary - field_42015- Lnet/minecraft/class_8056;field_42015:Lcom/mojang/serialization/Codec;- named - ENTRY_CODEC- Lnet/minecraft/item/trim/ArmorTrimPattern;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
ArmorTrimPattern
 
- 
- 
Method Details- 
getDescription- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcie;a(Lhe;)Lsw;- intermediary - method_48446- Lnet/minecraft/class_8056;method_48446(Lnet/minecraft/class_6880;)Lnet/minecraft/class_2561;- named - getDescription- Lnet/minecraft/item/trim/ArmorTrimPattern;getDescription(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/text/Text;
 
- 
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).
- 
assetIdReturns the value of theassetIdrecord component.- Returns:
- the value of the assetIdrecord component
 
- 
templateItemReturns the value of thetemplateItemrecord component.- Returns:
- the value of the templateItemrecord component
 
- 
descriptionReturns the value of thedescriptionrecord component.- Returns:
- the value of the descriptionrecord component
 
 
-