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/ArmorTrimintermediary net/minecraft/class_8053official dexnamed materialintermediary comp_3179official cnamed patternintermediary comp_3180official dnamed showInTooltipintermediary comp_3181official e
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern) ArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern, boolean showInTooltip) Creates an instance of aArmorTrimrecord class. -
Method Summary
Modifier 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
-
material
The field for thematerialrecord component. -
pattern
The field for thepatternrecord component. -
showInTooltip
private final boolean showInTooltipThe field for theshowInTooltiprecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/item/equipment/trim/ArmorTrim;CODEC:Lcom/mojang/serialization/Codec;intermediary field_41994Lnet/minecraft/class_8053;field_41994:Lcom/mojang/serialization/Codec;official aLdex;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/item/equipment/trim/ArmorTrim;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49278Lnet/minecraft/class_8053;field_49278:Lnet/minecraft/class_9139;official bLdex;b:Lyn;
-
UPGRADE_TEXT
- Mappings:
Namespace Name Mixin selector named UPGRADE_TEXTLnet/minecraft/item/equipment/trim/ArmorTrim;UPGRADE_TEXT:Lnet/minecraft/text/Text;intermediary field_41997Lnet/minecraft/class_8053;field_41997:Lnet/minecraft/class_2561;official fLdex;f:Lwp;
-
-
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;)Vintermediary <init>Lnet/minecraft/class_8053;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_6880;)Vofficial <init>Ldex;<init>(Ljr;Ljr;)V
-
ArmorTrim
public ArmorTrim(RegistryEntry<ArmorTrimMaterial> material, RegistryEntry<ArmorTrimPattern> pattern, boolean showInTooltip) Creates an instance of aArmorTrimrecord class.- Parameters:
material- the value for thematerialrecord componentpattern- the value for thepatternrecord componentshowInTooltip- the value for theshowInTooltiprecord component
-
-
Method Details
-
equals
public boolean equals(RegistryEntry<ArmorTrimPattern> pattern, RegistryEntry<ArmorTrimMaterial> material) - Mappings:
Namespace Name Mixin selector named equalsLnet/minecraft/item/equipment/trim/ArmorTrim;equals(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/registry/entry/RegistryEntry;)Zintermediary method_48427Lnet/minecraft/class_8053;method_48427(Lnet/minecraft/class_6880;Lnet/minecraft/class_6880;)Zofficial aLdex;a(Ljr;Ljr;)Z
-
appendTooltip
- Specified by:
appendTooltipin interfaceTooltipAppender- Mappings:
Namespace Name Mixin selector named appendTooltipLnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;)Vintermediary method_57409Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;)Vofficial aLczt;a(Lcwm$b;Ljava/util/function/Consumer;Lcyi;)V
-
withShowInTooltip
- Mappings:
Namespace Name Mixin selector named withShowInTooltipLnet/minecraft/item/equipment/trim/ArmorTrim;withShowInTooltip(Z)Lnet/minecraft/item/equipment/trim/ArmorTrim;intermediary method_58421Lnet/minecraft/class_8053;method_58421(Z)Lnet/minecraft/class_8053;official aLdex;a(Z)Ldex;
-
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 thematerialrecord component.- Returns:
- the value of the
materialrecord component
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
showInTooltip
public boolean showInTooltip()Returns the value of theshowInTooltiprecord component.- Returns:
- the value of the
showInTooltiprecord component
-