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 - dex- named - material- intermediary - comp_3179- official - c- named - pattern- intermediary - comp_3180- official - d- named - showInTooltip- intermediary - comp_3181- official - e
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ArmorTrim> private final RegistryEntry<ArmorTrimMaterial> The field for thematerialrecord component.static final PacketCodec<RegistryByteBuf, ArmorTrim> private final RegistryEntry<ArmorTrimPattern> The field for thepatternrecord component.private final booleanThe field for theshowInTooltiprecord component.private static final Text
- 
Constructor SummaryConstructorsConstructorDescriptionArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern) ArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern, boolean showInTooltip) Creates an instance of aArmorTrimrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionvoidappendTooltip(Item.TooltipContext context, Consumer<Text> tooltip, TooltipType type) final booleanIndicates whether some other object is "equal to" this one.booleanequals(RegistryEntry<ArmorTrimPattern> pattern, RegistryEntry<ArmorTrimMaterial> material) final inthashCode()Returns a hash code value for this object.material()Returns the value of thematerialrecord component.pattern()Returns the value of thepatternrecord component.booleanReturns the value of theshowInTooltiprecord component.final StringtoString()Returns a string representation of this record class.withShowInTooltip(boolean showInTooltip) 
- 
Field Details- 
materialThe field for thematerialrecord component.
- 
patternThe field for thepatternrecord component.
- 
showInTooltipprivate final boolean showInTooltipThe field for theshowInTooltiprecord 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- Ldex;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- Ldex;b:Lyn;
 
- 
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- Ldex;f:Lwp;
 
 
- 
- 
Constructor Details- 
ArmorTrimpublic 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>- Ldex;<init>(Ljr;Ljr;)V
 
- 
ArmorTrimpublic ArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern, boolean showInTooltip) Creates an instance of aArmorTrimrecord class.- Parameters:
- material- the value for the- materialrecord component
- pattern- the value for the- patternrecord component
- showInTooltip- the value for the- showInTooltiprecord component
 
 
- 
- 
Method Details- 
equalspublic 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- Ldex;a(Ljr;Ljr;)Z
 
- 
appendTooltip- Specified by:
- appendTooltipin 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- Lczt;a(Lcwm$b;Ljava/util/function/Consumer;Lcyi;)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- Ldex;a(Z)Ldex;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
materialReturns the value of thematerialrecord component.- Returns:
- the value of the materialrecord component
 
- 
patternReturns the value of thepatternrecord component.- Returns:
- the value of the patternrecord component
 
- 
showInTooltippublic boolean showInTooltip()Returns the value of theshowInTooltiprecord component.- Returns:
- the value of the showInTooltiprecord component
 
 
-