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 Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ArmorTrim> private final RegistryEntry
<ArmorTrimMaterial> The field for thematerial
record component.static final PacketCodec
<RegistryByteBuf, ArmorTrim> private final RegistryEntry
<ArmorTrimPattern> The field for thepattern
record component.private final boolean
The field for theshowInTooltip
record component.private static final Text
-
Constructor Summary
ConstructorDescriptionArmorTrim
(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern) ArmorTrim
(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern, boolean showInTooltip) Creates an instance of aArmorTrim
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendTooltip
(Item.TooltipContext context, Consumer<Text> tooltip, TooltipType type) final boolean
Indicates whether some other object is "equal to" this one.boolean
equals
(RegistryEntry<ArmorTrimPattern> pattern, RegistryEntry<ArmorTrimMaterial> material) private static String
getMaterialAssetNameFor
(RegistryEntry<ArmorTrimMaterial> material, Identifier modelId) getTexture
(EquipmentModel.LayerType layerType, Identifier modelId) final int
hashCode()
Returns a hash code value for this object.material()
Returns the value of thematerial
record component.pattern()
Returns the value of thepattern
record component.boolean
Returns the value of theshowInTooltip
record component.final String
toString()
Returns a string representation of this record class.withShowInTooltip
(boolean showInTooltip)
-
Field Details
-
material
The field for thematerial
record component. -
pattern
The field for thepattern
record component. -
showInTooltip
private final boolean showInTooltipThe field for theshowInTooltip
record component. -
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
- 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
- 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 aArmorTrim
record class.- Parameters:
material
- the value for thematerial
record componentpattern
- the value for thepattern
record componentshowInTooltip
- the value for theshowInTooltip
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
- 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
- Specified by:
appendTooltip
in interfaceTooltipAppender
- 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
- 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
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
material
Returns the value of thematerial
record component.- Returns:
- the value of the
material
record component
-
pattern
Returns the value of thepattern
record component.- Returns:
- the value of the
pattern
record component
-
showInTooltip
public boolean showInTooltip()Returns the value of theshowInTooltip
record component.- Returns:
- the value of the
showInTooltip
record component
-