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/ArmorTrimPattern
intermediary net/minecraft/class_8056
official cwy
named assetId
intermediary comp_1213
official e
named templateItem
intermediary comp_1214
official f
named description
intermediary comp_1215
official g
named decal
intermediary comp_1905
official h
  • Field Details Link icon

    • assetId Link icon

      private final Identifier assetId
      The field for the assetId record component.
    • templateItem Link icon

      private final RegistryEntry<Item> templateItem
      The field for the templateItem record component.
    • description Link icon

      private final Text description
      The field for the description record component.
    • decal Link icon

      private final boolean decal
      The field for the decal record component.
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<ArmorTrimPattern> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/item/trim/ArmorTrimPattern;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_42014 Lnet/minecraft/class_8056;field_42014:Lcom/mojang/serialization/Codec;
      official a Lcwy;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC Link icon

      public static final PacketCodec<RegistryByteBuf,ArmorTrimPattern> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/item/trim/ArmorTrimPattern;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49282 Lnet/minecraft/class_8056;field_49282:Lnet/minecraft/class_9139;
      official b Lcwy;b:Lzn;
    • ENTRY_CODEC Link icon

      public static final com.mojang.serialization.Codec<RegistryEntry<ArmorTrimPattern>> ENTRY_CODEC
      Mappings:
      Namespace Name Mixin selector
      named ENTRY_CODEC Lnet/minecraft/item/trim/ArmorTrimPattern;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_42015 Lnet/minecraft/class_8056;field_42015:Lcom/mojang/serialization/Codec;
      official c Lcwy;c:Lcom/mojang/serialization/Codec;
    • ENTRY_PACKET_CODEC Link icon

      public static final PacketCodec<RegistryByteBuf,RegistryEntry<ArmorTrimPattern>> ENTRY_PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named ENTRY_PACKET_CODEC Lnet/minecraft/item/trim/ArmorTrimPattern;ENTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49283 Lnet/minecraft/class_8056;field_49283:Lnet/minecraft/class_9139;
      official d Lcwy;d:Lzn;
  • Constructor Details Link icon

  • Method Details Link icon

    • getDescription Link icon

      public Text getDescription(RegistryEntry<ArmorTrimMaterial> material)
      Mappings:
      Namespace Name Mixin selector
      named getDescription Lnet/minecraft/item/trim/ArmorTrimPattern;getDescription(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/text/Text;
      intermediary method_48446 Lnet/minecraft/class_8056;method_48446(Lnet/minecraft/class_6880;)Lnet/minecraft/class_2561;
      official a Lcwy;a(Lji;)Lxp;
    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • assetId Link icon

      public Identifier assetId()
      Returns the value of the assetId record component.
      Returns:
      the value of the assetId record component
    • templateItem Link icon

      public RegistryEntry<Item> templateItem()
      Returns the value of the templateItem record component.
      Returns:
      the value of the templateItem record component
    • description Link icon

      public Text description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • decal Link icon

      public boolean decal()
      Returns the value of the decal record component.
      Returns:
      the value of the decal record component