Record Class ArmorTrimMaterial

java.lang.Object
java.lang.Record
net.minecraft.item.equipment.trim.ArmorTrimMaterial
Record Components:
assets -
description -

public record ArmorTrimMaterial(ArmorTrimAssets assets, Text description) extends Record
Mappings:
Namespace Name
named net/minecraft/item/equipment/trim/ArmorTrimMaterial
intermediary net/minecraft/class_8054
official dix
named assets
intermediary comp_3606
official e
named description
intermediary comp_1212
official f
  • Field Details Link icon

    • assets Link icon

      private final ArmorTrimAssets assets
      The field for the assets record component.
    • description Link icon

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

      public static final com.mojang.serialization.Codec<ArmorTrimMaterial> 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 Ldix;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC Link icon

      public static final PacketCodec<RegistryByteBuf,ArmorTrimMaterial> 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 Ldix;b:Lze;
    • ENTRY_CODEC Link icon

      public static final com.mojang.serialization.Codec<RegistryEntry<ArmorTrimMaterial>> 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 Ldix;c:Lcom/mojang/serialization/Codec;
    • ENTRY_PACKET_CODEC Link icon

      public 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 Ldix;d:Lze;
  • Constructor Details Link icon

  • Method Details Link icon

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • assets Link icon

      public ArmorTrimAssets assets()
      Returns the value of the assets record component.
      Returns:
      the value of the assets record component
    • description Link icon

      public Text description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component