Package net.minecraft.item.trim
Class ArmorTrim
java.lang.Object
net.minecraft.item.trim.ArmorTrim
- All Implemented Interfaces:
TooltipAppender
- Mappings:
Namespace Name official cttintermediary net/minecraft/class_8053named net/minecraft/item/trim/ArmorTrim
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ArmorTrim> private final Function<RegistryEntry<ArmorMaterial>, Identifier> private final Function<RegistryEntry<ArmorMaterial>, Identifier> private final RegistryEntry<ArmorTrimMaterial> static final PacketCodec<RegistryByteBuf, ArmorTrim> private final RegistryEntry<ArmorTrimPattern> private final booleanprivate static final Text -
Constructor Summary
ConstructorsConstructorDescriptionArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern) ArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern, boolean showInTooltip) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(Consumer<Text> textConsumer, TooltipContext context) booleanbooleanequals(RegistryEntry<ArmorTrimPattern> pattern, RegistryEntry<ArmorTrimMaterial> material) getGenericModelId(RegistryEntry<ArmorMaterial> armorMaterial) getLeggingsModelId(RegistryEntry<ArmorMaterial> armorMaterial) private StringgetMaterialAssetNameFor(RegistryEntry<ArmorMaterial> armorMaterial) inthashCode()
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLctt;a:Lcom/mojang/serialization/Codec;intermediary field_41994Lnet/minecraft/class_8053;field_41994:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/item/trim/ArmorTrim;CODEC:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector official bLctt;b:Lyg;intermediary field_49278Lnet/minecraft/class_8053;field_49278:Lnet/minecraft/class_9139;named PACKET_CODECLnet/minecraft/item/trim/ArmorTrim;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
UPGRADE_TEXT
- Mappings:
Namespace Name Mixin selector official cLctt;c:Lwi;intermediary field_41997Lnet/minecraft/class_8053;field_41997:Lnet/minecraft/class_2561;named UPGRADE_TEXTLnet/minecraft/item/trim/ArmorTrim;UPGRADE_TEXT:Lnet/minecraft/text/Text;
-
material
- Mappings:
Namespace Name Mixin selector official dLctt;d:Lin;intermediary field_41998Lnet/minecraft/class_8053;field_41998:Lnet/minecraft/class_6880;named materialLnet/minecraft/item/trim/ArmorTrim;material:Lnet/minecraft/registry/entry/RegistryEntry;
-
pattern
- Mappings:
Namespace Name Mixin selector official eLctt;e:Lin;intermediary field_41999Lnet/minecraft/class_8053;field_41999:Lnet/minecraft/class_6880;named patternLnet/minecraft/item/trim/ArmorTrim;pattern:Lnet/minecraft/registry/entry/RegistryEntry;
-
showInTooltip
private final boolean showInTooltip- Mappings:
Namespace Name Mixin selector official fLctt;f:Zintermediary field_49279Lnet/minecraft/class_8053;field_49279:Znamed showInTooltipLnet/minecraft/item/trim/ArmorTrim;showInTooltip:Z
-
leggingsModelIdGetter
- Mappings:
Namespace Name Mixin selector official gLctt;g:Ljava/util/function/Function;intermediary field_42000Lnet/minecraft/class_8053;field_42000:Ljava/util/function/Function;named leggingsModelIdGetterLnet/minecraft/item/trim/ArmorTrim;leggingsModelIdGetter:Ljava/util/function/Function;
-
genericModelIdGetter
- Mappings:
Namespace Name Mixin selector official hLctt;h:Ljava/util/function/Function;intermediary field_42001Lnet/minecraft/class_8053;field_42001:Ljava/util/function/Function;named genericModelIdGetterLnet/minecraft/item/trim/ArmorTrim;genericModelIdGetter:Ljava/util/function/Function;
-
-
Constructor Details
-
ArmorTrim
public ArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern, boolean showInTooltip) - Mappings:
Namespace Name Mixin selector official <init>Lctt;<init>(Lin;Lin;Z)Vintermediary <init>Lnet/minecraft/class_8053;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_6880;Z)Vnamed <init>Lnet/minecraft/item/trim/ArmorTrim;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/registry/entry/RegistryEntry;Z)V
-
ArmorTrim
public ArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern) - Mappings:
Namespace Name Mixin selector official <init>Lctt;<init>(Lin;Lin;)Vintermediary <init>Lnet/minecraft/class_8053;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_6880;)Vnamed <init>Lnet/minecraft/item/trim/ArmorTrim;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/registry/entry/RegistryEntry;)V
-
-
Method Details
-
getMaterialAssetNameFor
- Mappings:
Namespace Name Mixin selector official cLctt;c(Lin;)Ljava/lang/String;intermediary method_48577Lnet/minecraft/class_8053;method_48577(Lnet/minecraft/class_6880;)Ljava/lang/String;named getMaterialAssetNameForLnet/minecraft/item/trim/ArmorTrim;getMaterialAssetNameFor(Lnet/minecraft/registry/entry/RegistryEntry;)Ljava/lang/String;
-
equals
public boolean equals(RegistryEntry<ArmorTrimPattern> pattern, RegistryEntry<ArmorTrimMaterial> material) - Mappings:
Namespace Name Mixin selector official aLctt;a(Lin;Lin;)Zintermediary method_48427Lnet/minecraft/class_8053;method_48427(Lnet/minecraft/class_6880;Lnet/minecraft/class_6880;)Znamed equalsLnet/minecraft/item/trim/ArmorTrim;equals(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/registry/entry/RegistryEntry;)Z
-
getPattern
- Mappings:
Namespace Name Mixin selector official aLctt;a()Lin;intermediary method_48424Lnet/minecraft/class_8053;method_48424()Lnet/minecraft/class_6880;named getPatternLnet/minecraft/item/trim/ArmorTrim;getPattern()Lnet/minecraft/registry/entry/RegistryEntry;
-
getMaterial
- Mappings:
Namespace Name Mixin selector official bLctt;b()Lin;intermediary method_48431Lnet/minecraft/class_8053;method_48431()Lnet/minecraft/class_6880;named getMaterialLnet/minecraft/item/trim/ArmorTrim;getMaterial()Lnet/minecraft/registry/entry/RegistryEntry;
-
getLeggingsModelId
- Mappings:
Namespace Name Mixin selector official aLctt;a(Lin;)Lajv;intermediary method_48434Lnet/minecraft/class_8053;method_48434(Lnet/minecraft/class_6880;)Lnet/minecraft/class_2960;named getLeggingsModelIdLnet/minecraft/item/trim/ArmorTrim;getLeggingsModelId(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/util/Identifier;
-
getGenericModelId
- Mappings:
Namespace Name Mixin selector official bLctt;b(Lin;)Lajv;intermediary method_48436Lnet/minecraft/class_8053;method_48436(Lnet/minecraft/class_6880;)Lnet/minecraft/class_2960;named getGenericModelIdLnet/minecraft/item/trim/ArmorTrim;getGenericModelId(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/util/Identifier;
-
equals
-
hashCode
public int hashCode() -
appendTooltip
- Specified by:
appendTooltipin interfaceTooltipAppender- Mappings:
Namespace Name Mixin selector official aLcus;a(Ljava/util/function/Consumer;Lcti;)Vintermediary method_57409Lnet/minecraft/class_9299;method_57409(Ljava/util/function/Consumer;Lnet/minecraft/class_1836;)Vnamed appendTooltipLnet/minecraft/item/TooltipAppender;appendTooltip(Ljava/util/function/Consumer;Lnet/minecraft/client/item/TooltipContext;)V
-