Record Class ArmorTrimMaterial

java.lang.Object
java.lang.Record
net.minecraft.item.trim.ArmorTrimMaterial
Record Components:
assetName -
ingredient -
itemModelIndex -
overrideArmorMaterials -
description -

public record ArmorTrimMaterial(String assetName, RegistryEntry<Item> ingredient, float itemModelIndex, Map<RegistryEntry<ArmorMaterial>,String> overrideArmorMaterials, Text description) extends Record
Mappings:
Namespace Name
named net/minecraft/item/trim/ArmorTrimMaterial
intermediary net/minecraft/class_8054
official cww
named assetName
intermediary comp_1208
official e
named ingredient
intermediary comp_1209
official f
named itemModelIndex
intermediary comp_1210
official g
named overrideArmorMaterials
intermediary comp_1237
official h
named description
intermediary comp_1212
official i
  • Field Details

    • assetName

      private final String assetName
      The field for the assetName record component.
    • ingredient

      private final RegistryEntry<Item> ingredient
      The field for the ingredient record component.
    • itemModelIndex

      private final float itemModelIndex
      The field for the itemModelIndex record component.
    • overrideArmorMaterials

      private final Map<RegistryEntry<ArmorMaterial>,String> overrideArmorMaterials
      The field for the overrideArmorMaterials record component.
    • description

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

      public static final com.mojang.serialization.Codec<ArmorTrimMaterial> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/item/trim/ArmorTrimMaterial;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_42002 Lnet/minecraft/class_8054;field_42002:Lcom/mojang/serialization/Codec;
      official a Lcww;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,ArmorTrimMaterial> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/item/trim/ArmorTrimMaterial;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49280 Lnet/minecraft/class_8054;field_49280:Lnet/minecraft/class_9139;
      official b Lcww;b:Lyw;
    • ENTRY_CODEC

      public static final com.mojang.serialization.Codec<RegistryEntry<ArmorTrimMaterial>> ENTRY_CODEC
      Mappings:
      Namespace Name Mixin selector
      named ENTRY_CODEC Lnet/minecraft/item/trim/ArmorTrimMaterial;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_42003 Lnet/minecraft/class_8054;field_42003:Lcom/mojang/serialization/Codec;
      official c Lcww;c:Lcom/mojang/serialization/Codec;
    • ENTRY_PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,RegistryEntry<ArmorTrimMaterial>> ENTRY_PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named ENTRY_PACKET_CODEC Lnet/minecraft/item/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 Lcww;d:Lyw;
  • Constructor Details

  • Method Details

    • of

      public static ArmorTrimMaterial of(String assetName, Item ingredient, float itemModelIndex, Text description, Map<RegistryEntry<ArmorMaterial>,String> overrideArmorMaterials)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/item/trim/ArmorTrimMaterial;of(Ljava/lang/String;Lnet/minecraft/item/Item;FLnet/minecraft/text/Text;Ljava/util/Map;)Lnet/minecraft/item/trim/ArmorTrimMaterial;
      intermediary method_48438 Lnet/minecraft/class_8054;method_48438(Ljava/lang/String;Lnet/minecraft/class_1792;FLnet/minecraft/class_2561;Ljava/util/Map;)Lnet/minecraft/class_8054;
      official a Lcww;a(Ljava/lang/String;Lcuj;FLwy;Ljava/util/Map;)Lcww;
    • toString

      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

      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

      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.
    • assetName

      public String assetName()
      Returns the value of the assetName record component.
      Returns:
      the value of the assetName record component
    • ingredient

      public RegistryEntry<Item> ingredient()
      Returns the value of the ingredient record component.
      Returns:
      the value of the ingredient record component
    • itemModelIndex

      public float itemModelIndex()
      Returns the value of the itemModelIndex record component.
      Returns:
      the value of the itemModelIndex record component
    • overrideArmorMaterials

      public Map<RegistryEntry<ArmorMaterial>,String> overrideArmorMaterials()
      Returns the value of the overrideArmorMaterials record component.
      Returns:
      the value of the overrideArmorMaterials record component
    • description

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