Record Class ArmorTrim

java.lang.Object
java.lang.Record
net.minecraft.item.equipment.trim.ArmorTrim
Record Components:
material -
pattern -
All Implemented Interfaces:
TooltipAppender

public record ArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern) extends Record implements TooltipAppender
Mappings:
Namespace Name
named net/minecraft/item/equipment/trim/ArmorTrim
intermediary net/minecraft/class_8053
official div
named material
intermediary comp_3179
official c
named pattern
intermediary comp_3180
official d
  • Field Details Link icon

    • material Link icon

      private final RegistryEntry<ArmorTrimMaterial> material
      The field for the material record component.
    • pattern Link icon

      private final RegistryEntry<ArmorTrimPattern> pattern
      The field for the pattern record component.
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<ArmorTrim> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/item/equipment/trim/ArmorTrim;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_41994 Lnet/minecraft/class_8053;field_41994:Lcom/mojang/serialization/Codec;
      official a Ldiv;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC Link icon

      public static final PacketCodec<RegistryByteBuf,ArmorTrim> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/item/equipment/trim/ArmorTrim;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49278 Lnet/minecraft/class_8053;field_49278:Lnet/minecraft/class_9139;
      official b Ldiv;b:Lze;
    • UPGRADE_TEXT Link icon

      private static final Text UPGRADE_TEXT
      Mappings:
      Namespace Name Mixin selector
      named UPGRADE_TEXT Lnet/minecraft/item/equipment/trim/ArmorTrim;UPGRADE_TEXT:Lnet/minecraft/text/Text;
      intermediary field_41997 Lnet/minecraft/class_8053;field_41997:Lnet/minecraft/class_2561;
      official e Ldiv;e:Lxg;
  • Constructor Details Link icon

  • Method Details Link icon

    • appendTooltip Link icon

      public void appendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, ComponentsAccess components)
      Specified by:
      appendTooltip in interface TooltipAppender
      Mappings:
      Namespace Name Mixin selector
      named appendTooltip Lnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;Lnet/minecraft/component/ComponentsAccess;)V
      intermediary method_57409 Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;Lnet/minecraft/class_9473;)V
      official a Lddp;a(Ldag$b;Ljava/util/function/Consumer;Ldbz;Lkg;)V
    • getTextureId Link icon

      public Identifier getTextureId(String trimsDirectory, RegistryKey<EquipmentAsset> equipmentAsset)
      Mappings:
      Namespace Name Mixin selector
      named getTextureId Lnet/minecraft/item/equipment/trim/ArmorTrim;getTextureId(Ljava/lang/String;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/util/Identifier;
      intermediary method_67225 Lnet/minecraft/class_8053;method_67225(Ljava/lang/String;Lnet/minecraft/class_5321;)Lnet/minecraft/class_2960;
      official a Ldiv;a(Ljava/lang/String;Lalq;)Lalr;
    • 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.
    • material Link icon

      public RegistryEntry<ArmorTrimMaterial> material()
      Returns the value of the material record component.
      Returns:
      the value of the material record component
    • pattern Link icon

      public RegistryEntry<ArmorTrimPattern> pattern()
      Returns the value of the pattern record component.
      Returns:
      the value of the pattern record component