Class ArmorTrim

java.lang.Object
net.minecraft.item.trim.ArmorTrim
All Implemented Interfaces:
TooltipAppender

public class ArmorTrim extends Object implements TooltipAppender
Mappings:
Namespace Name
named net/minecraft/item/trim/ArmorTrim
intermediary net/minecraft/class_8053
official cwv
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ArmorTrim> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/item/trim/ArmorTrim;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_41994 Lnet/minecraft/class_8053;field_41994:Lcom/mojang/serialization/Codec;
      official a Lcwv;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/trim/ArmorTrim;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49278 Lnet/minecraft/class_8053;field_49278:Lnet/minecraft/class_9139;
      official b Lcwv;b:Lzn;
    • UPGRADE_TEXT

      private static final Text UPGRADE_TEXT
      Mappings:
      Namespace Name Mixin selector
      named UPGRADE_TEXT Lnet/minecraft/item/trim/ArmorTrim;UPGRADE_TEXT:Lnet/minecraft/text/Text;
      intermediary field_41997 Lnet/minecraft/class_8053;field_41997:Lnet/minecraft/class_2561;
      official c Lcwv;c:Lxp;
    • material

      private final RegistryEntry<ArmorTrimMaterial> material
      Mappings:
      Namespace Name Mixin selector
      named material Lnet/minecraft/item/trim/ArmorTrim;material:Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary field_41998 Lnet/minecraft/class_8053;field_41998:Lnet/minecraft/class_6880;
      official d Lcwv;d:Lji;
    • pattern

      private final RegistryEntry<ArmorTrimPattern> pattern
      Mappings:
      Namespace Name Mixin selector
      named pattern Lnet/minecraft/item/trim/ArmorTrim;pattern:Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary field_41999 Lnet/minecraft/class_8053;field_41999:Lnet/minecraft/class_6880;
      official e Lcwv;e:Lji;
    • showInTooltip

      private final boolean showInTooltip
      Mappings:
      Namespace Name Mixin selector
      named showInTooltip Lnet/minecraft/item/trim/ArmorTrim;showInTooltip:Z
      intermediary field_49279 Lnet/minecraft/class_8053;field_49279:Z
      official f Lcwv;f:Z
    • leggingsModelIdGetter

      private final Function<RegistryEntry<ArmorMaterial>,Identifier> leggingsModelIdGetter
      Mappings:
      Namespace Name Mixin selector
      named leggingsModelIdGetter Lnet/minecraft/item/trim/ArmorTrim;leggingsModelIdGetter:Ljava/util/function/Function;
      intermediary field_42000 Lnet/minecraft/class_8053;field_42000:Ljava/util/function/Function;
      official g Lcwv;g:Ljava/util/function/Function;
    • genericModelIdGetter

      private final Function<RegistryEntry<ArmorMaterial>,Identifier> genericModelIdGetter
      Mappings:
      Namespace Name Mixin selector
      named genericModelIdGetter Lnet/minecraft/item/trim/ArmorTrim;genericModelIdGetter:Ljava/util/function/Function;
      intermediary field_42001 Lnet/minecraft/class_8053;field_42001:Ljava/util/function/Function;
      official h Lcwv;h:Ljava/util/function/Function;
  • Constructor Details

    • ArmorTrim

      private ArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern, boolean showInTooltip, Function<RegistryEntry<ArmorMaterial>,Identifier> leggingsModelIdGetter, Function<RegistryEntry<ArmorMaterial>,Identifier> genericModelIdGetter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/item/trim/ArmorTrim;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/registry/entry/RegistryEntry;ZLjava/util/function/Function;Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_8053;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_6880;ZLjava/util/function/Function;Ljava/util/function/Function;)V
      official <init> Lcwv;<init>(Lji;Lji;ZLjava/util/function/Function;Ljava/util/function/Function;)V
    • ArmorTrim

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

      public ArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/item/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> Lcwv;<init>(Lji;Lji;)V
  • Method Details

    • getMaterialAssetNameFor

      private static String getMaterialAssetNameFor(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorMaterial> armorMaterial)
      Mappings:
      Namespace Name Mixin selector
      named getMaterialAssetNameFor Lnet/minecraft/item/trim/ArmorTrim;getMaterialAssetNameFor(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/registry/entry/RegistryEntry;)Ljava/lang/String;
      intermediary method_48577 Lnet/minecraft/class_8053;method_48577(Lnet/minecraft/class_6880;Lnet/minecraft/class_6880;)Ljava/lang/String;
      official b Lcwv;b(Lji;Lji;)Ljava/lang/String;
    • equals

      public boolean equals(RegistryEntry<ArmorTrimPattern> pattern, RegistryEntry<ArmorTrimMaterial> material)
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/item/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 Lcwv;a(Lji;Lji;)Z
    • getPattern

      public RegistryEntry<ArmorTrimPattern> getPattern()
      Mappings:
      Namespace Name Mixin selector
      named getPattern Lnet/minecraft/item/trim/ArmorTrim;getPattern()Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary method_48424 Lnet/minecraft/class_8053;method_48424()Lnet/minecraft/class_6880;
      official a Lcwv;a()Lji;
    • getMaterial

      public RegistryEntry<ArmorTrimMaterial> getMaterial()
      Mappings:
      Namespace Name Mixin selector
      named getMaterial Lnet/minecraft/item/trim/ArmorTrim;getMaterial()Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary method_48431 Lnet/minecraft/class_8053;method_48431()Lnet/minecraft/class_6880;
      official b Lcwv;b()Lji;
    • getLeggingsModelId

      public Identifier getLeggingsModelId(RegistryEntry<ArmorMaterial> armorMaterial)
      Mappings:
      Namespace Name Mixin selector
      named getLeggingsModelId Lnet/minecraft/item/trim/ArmorTrim;getLeggingsModelId(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/util/Identifier;
      intermediary method_48434 Lnet/minecraft/class_8053;method_48434(Lnet/minecraft/class_6880;)Lnet/minecraft/class_2960;
      official a Lcwv;a(Lji;)Lalf;
    • getGenericModelId

      public Identifier getGenericModelId(RegistryEntry<ArmorMaterial> armorMaterial)
      Mappings:
      Namespace Name Mixin selector
      named getGenericModelId Lnet/minecraft/item/trim/ArmorTrim;getGenericModelId(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/util/Identifier;
      intermediary method_48436 Lnet/minecraft/class_8053;method_48436(Lnet/minecraft/class_6880;)Lnet/minecraft/class_2960;
      official b Lcwv;b(Lji;)Lalf;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/item/trim/ArmorTrim;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_8053;equals(Ljava/lang/Object;)Z
      official equals Lcwv;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/client/item/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 Lcxx;a(Lcum$b;Ljava/util/function/Consumer;Lcwk;)V
    • withShowInTooltip

      public ArmorTrim withShowInTooltip(boolean showInTooltip)
      Mappings:
      Namespace Name Mixin selector
      named withShowInTooltip Lnet/minecraft/item/trim/ArmorTrim;withShowInTooltip(Z)Lnet/minecraft/item/trim/ArmorTrim;
      intermediary method_58421 Lnet/minecraft/class_8053;method_58421(Z)Lnet/minecraft/class_8053;
      official a Lcwv;a(Z)Lcwv;