Record Class ArmorTrim

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

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

    • material

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

      private final RegistryEntry<ArmorTrimPattern> pattern
      The field for the pattern record component.
    • showInTooltip

      private final boolean showInTooltip
      The field for the showInTooltip record component.
    • CODEC

      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 Ldfv;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      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 Ldfv;b:Lzt;
    • UPGRADE_TEXT

      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 f Ldfv;f:Lxv;
  • Constructor Details

    • ArmorTrim

      public ArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/item/equipment/trim/ArmorTrim;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/registry/entry/RegistryEntry;)V
      intermediary <init> Lnet/minecraft/class_8053;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_6880;)V
      official <init> Ldfv;<init>(Ljq;Ljq;)V
    • ArmorTrim

      public ArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern, boolean showInTooltip)
      Creates an instance of a ArmorTrim record class.
      Parameters:
      material - the value for the material record component
      pattern - the value for the pattern record component
      showInTooltip - the value for the showInTooltip record component
  • Method Details

    • getMaterialAssetNameFor

      private static String getMaterialAssetNameFor(RegistryEntry<ArmorTrimMaterial> material, Identifier modelId)
      Mappings:
      Namespace Name Mixin selector
      named getMaterialAssetNameFor Lnet/minecraft/item/equipment/trim/ArmorTrim;getMaterialAssetNameFor(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/Identifier;)Ljava/lang/String;
      intermediary method_48577 Lnet/minecraft/class_8053;method_48577(Lnet/minecraft/class_6880;Lnet/minecraft/class_2960;)Ljava/lang/String;
      official a Ldfv;a(Ljq;Lalz;)Ljava/lang/String;
    • equals

      public boolean equals(RegistryEntry<ArmorTrimPattern> pattern, RegistryEntry<ArmorTrimMaterial> material)
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/item/equipment/trim/ArmorTrim;equals(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/registry/entry/RegistryEntry;)Z
      intermediary method_48427 Lnet/minecraft/class_8053;method_48427(Lnet/minecraft/class_6880;Lnet/minecraft/class_6880;)Z
      official a Ldfv;a(Ljq;Ljq;)Z
    • getTexture

      public Identifier getTexture(EquipmentModel.LayerType layerType, Identifier modelId)
      Mappings:
      Namespace Name Mixin selector
      named getTexture Lnet/minecraft/item/equipment/trim/ArmorTrim;getTexture(Lnet/minecraft/item/equipment/EquipmentModel$LayerType;Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/Identifier;
      intermediary method_64019 Lnet/minecraft/class_8053;method_64019(Lnet/minecraft/class_10186$class_10190;Lnet/minecraft/class_2960;)Lnet/minecraft/class_2960;
      official a Ldfv;a(Ldfr$d;Lalz;)Lalz;
    • appendTooltip

      public void appendTooltip(Item.TooltipContext context, Consumer<Text> tooltip, TooltipType type)
      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;)V
      intermediary method_57409 Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;)V
      official a Ldar;a(Lcxk$b;Ljava/util/function/Consumer;Lczg;)V
    • withShowInTooltip

      public ArmorTrim withShowInTooltip(boolean showInTooltip)
      Mappings:
      Namespace Name Mixin selector
      named withShowInTooltip Lnet/minecraft/item/equipment/trim/ArmorTrim;withShowInTooltip(Z)Lnet/minecraft/item/equipment/trim/ArmorTrim;
      intermediary method_58421 Lnet/minecraft/class_8053;method_58421(Z)Lnet/minecraft/class_8053;
      official a Ldfv;a(Z)Ldfv;
    • 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.
    • material

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

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

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