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 Summary
FieldsModifier 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 static final Text
-
Constructor Summary
ConstructorsConstructorDescriptionArmorTrim
(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern) Creates an instance of aArmorTrim
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendTooltip
(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, ComponentsAccess components) final boolean
Indicates whether some other object is "equal to" this one.getTextureId
(String trimsDirectory, RegistryKey<EquipmentAsset> equipmentAsset) 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.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
material
The field for thematerial
record component. -
pattern
The field for thepattern
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
Ldiv;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
Ldiv;b:Lze;
-
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
-
ArmorTrim
public ArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern) Creates an instance of aArmorTrim
record class.
-
-
Method Details
-
appendTooltip
public void appendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, ComponentsAccess components) - 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;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
- 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
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
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
-