Package net.minecraft.component.type
Record Class LoreComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.LoreComponent
- Record Components:
lines
-styledLines
-
- All Implemented Interfaces:
TooltipAppender
public record LoreComponent(List<Text> lines, List<Text> styledLines)
extends Record
implements TooltipAppender
- Mappings:
Namespace Name named net/minecraft/component/type/LoreComponent
intermediary net/minecraft/class_9290
official cxo
named lines
intermediary comp_2400
official e
named styledLines
intermediary comp_2401
official f
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<LoreComponent> static final LoreComponent
The field for thelines
record component.static final int
static final PacketCodec
<RegistryByteBuf, LoreComponent> private static final Style
The field for thestyledLines
record component. -
Constructor Summary
ConstructorDescriptionLoreComponent
(List<Text> lines) LoreComponent
(List<Text> list, List<Text> list2) -
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.final int
hashCode()
Returns a hash code value for this object.lines()
Returns the value of thelines
record component.Returns the value of thestyledLines
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
lines
The field for thelines
record component. -
styledLines
The field for thestyledLines
record component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULT
Lnet/minecraft/component/type/LoreComponent;DEFAULT:Lnet/minecraft/component/type/LoreComponent;
intermediary field_49340
Lnet/minecraft/class_9290;field_49340:Lnet/minecraft/class_9290;
official a
Lcxo;a:Lcxo;
-
MAX_LORES
public static final int MAX_LORES- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_LORES
Lnet/minecraft/component/type/LoreComponent;MAX_LORES:I
intermediary field_49343
Lnet/minecraft/class_9290;field_49343:I
official b
Lcxo;b:I
-
STYLE
- Mappings:
Namespace Name Mixin selector named STYLE
Lnet/minecraft/component/type/LoreComponent;STYLE:Lnet/minecraft/text/Style;
intermediary field_49344
Lnet/minecraft/class_9290;field_49344:Lnet/minecraft/class_2583;
official g
Lcxo;g:Lym;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/component/type/LoreComponent;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_49341
Lnet/minecraft/class_9290;field_49341:Lcom/mojang/serialization/Codec;
official c
Lcxo;c:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/component/type/LoreComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_49342
Lnet/minecraft/class_9290;field_49342:Lnet/minecraft/class_9139;
official d
Lcxo;d:Lzn;
-
-
Constructor Details
-
LoreComponent
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/component/type/LoreComponent;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_9290;<init>(Ljava/util/List;)V
official <init>
Lcxo;<init>(Ljava/util/List;)V
-
LoreComponent
-
-
Method Details
-
with
- Mappings:
Namespace Name Mixin selector named with
Lnet/minecraft/component/type/LoreComponent;with(Lnet/minecraft/text/Text;)Lnet/minecraft/component/type/LoreComponent;
intermediary method_57499
Lnet/minecraft/class_9290;method_57499(Lnet/minecraft/class_2561;)Lnet/minecraft/class_9290;
official a
Lcxo;a(Lxp;)Lcxo;
-
appendTooltip
- Specified by:
appendTooltip
in interfaceTooltipAppender
- Mappings:
Namespace Name Mixin selector named appendTooltip
Lnet/minecraft/item/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/client/item/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
Lcxx;a(Lcum$b;Ljava/util/function/Consumer;Lcwk;)V
-
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)
. -
lines
Returns the value of thelines
record component.- Returns:
- the value of the
lines
record component
-
styledLines
Returns the value of thestyledLines
record component.- Returns:
- the value of the
styledLines
record component
-