net.minecraft.world.item.component

public record ItemLore

implements TooltipProvider

dai
net.minecraft.world.item.component.ItemLore
net.minecraft.class_9290
net.minecraft.component.type.LoreComponent
net.minecraft.world.item.component.ItemLore

Field summary

Modifier and TypeField
private final List<Component>
e
lines
comp_2400
lines
private final List<Component>
f
styledLines
comp_2401
styledLines
public static final ItemLore
a
EMPTY
field_49340
DEFAULT
public static final int
b
MAX_LINES
field_49343
MAX_LORES
private static final Style
g
LORE_STYLE
field_49344
STYLE
public static final com.mojang.serialization.Codec<ItemLore>
c
CODEC
field_49341
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, ItemLore>
d
STREAM_CODEC
field_49342
PACKET_CODEC

Constructor summary

ModifierConstructor
public (List<Component> lines)
public (List<Component> arg0, List<Component> arg1)

Method summary

Modifier and TypeMethod
public ItemLore
a(xv arg0)
withLineAdded(Component arg0)
method_57499(class_2561 arg0)
with(Text line)
public void
a(cxl$b arg0, Consumer<xv> arg1, czh arg2)
addToTooltip(Item$TooltipContext arg0, Consumer<Component> arg1, TooltipFlag arg2)
method_57409(class_1792$class_9635 arg0, Consumer<class_2561> arg1, class_1836 arg2)
appendTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipType arg2)
public List<Component>
a()
lines()
comp_2400()
lines()
public List<Component>
b()
styledLines()
comp_2401()
styledLines()