Package net.minecraft.item.trim
Record Class ArmorTrimPattern
java.lang.Object
java.lang.Record
net.minecraft.item.trim.ArmorTrimPattern
- Record Components:
assetId-templateItem-description-decal-
public record ArmorTrimPattern(Identifier assetId, RegistryEntry<Item> templateItem, Text description, boolean decal)
extends Record
- Mappings:
Namespace Name named net/minecraft/item/trim/ArmorTrimPatternintermediary net/minecraft/class_8056official cxanamed assetIdintermediary comp_1213official enamed templateItemintermediary comp_1214official fnamed descriptionintermediary comp_1215official gnamed decalintermediary comp_1905official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theassetIdrecord component.static final com.mojang.serialization.Codec<ArmorTrimPattern> private final booleanThe field for thedecalrecord component.private final TextThe field for thedescriptionrecord component.static final com.mojang.serialization.Codec<RegistryEntry<ArmorTrimPattern>> static final PacketCodec<RegistryByteBuf, RegistryEntry<ArmorTrimPattern>> static final PacketCodec<RegistryByteBuf, ArmorTrimPattern> private final RegistryEntry<Item> The field for thetemplateItemrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionArmorTrimPattern(Identifier identifier, RegistryEntry<Item> registryEntry, Text text, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionassetId()Returns the value of theassetIdrecord component.booleandecal()Returns the value of thedecalrecord 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
-
assetId
The field for theassetIdrecord component. -
templateItem
The field for thetemplateItemrecord component. -
description
The field for thedescriptionrecord component. -
decal
private final boolean decalThe field for thedecalrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/item/trim/ArmorTrimPattern;CODEC:Lcom/mojang/serialization/Codec;intermediary field_42014Lnet/minecraft/class_8056;field_42014:Lcom/mojang/serialization/Codec;official aLcxa;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/item/trim/ArmorTrimPattern;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49282Lnet/minecraft/class_8056;field_49282:Lnet/minecraft/class_9139;official bLcxa;b:Lyx;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODECLnet/minecraft/item/trim/ArmorTrimPattern;ENTRY_CODEC:Lcom/mojang/serialization/Codec;intermediary field_42015Lnet/minecraft/class_8056;field_42015:Lcom/mojang/serialization/Codec;official cLcxa;c:Lcom/mojang/serialization/Codec;
-
ENTRY_PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_PACKET_CODECLnet/minecraft/item/trim/ArmorTrimPattern;ENTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49283Lnet/minecraft/class_8056;field_49283:Lnet/minecraft/class_9139;official dLcxa;d:Lyx;
-
-
Constructor Details
-
ArmorTrimPattern
public ArmorTrimPattern(Identifier identifier, RegistryEntry<Item> registryEntry, Text text, boolean bool)
-
-
Method Details
-
getDescription
- Mappings:
Namespace Name Mixin selector named getDescriptionLnet/minecraft/item/trim/ArmorTrimPattern;getDescription(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/text/Text;intermediary method_48446Lnet/minecraft/class_8056;method_48446(Lnet/minecraft/class_6880;)Lnet/minecraft/class_2561;official aLcxa;a(Ljm;)Lwz;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
assetId
Returns the value of theassetIdrecord component.- Returns:
- the value of the
assetIdrecord component
-
templateItem
Returns the value of thetemplateItemrecord component.- Returns:
- the value of the
templateItemrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
decal
public boolean decal()Returns the value of thedecalrecord component.- Returns:
- the value of the
decalrecord component
-