net.minecraft.world.item.component

public record ItemLore

implements TooltipProvider

cxp
net.minecraft.world.item.component.ItemLore
net.minecraft.class_9290
net.minecraft.component.type.LoreComponent
net.minecraft.src.C_313731_
net.minecraft.world.item.component.ItemLore

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public ItemLore
a(wz arg0)
withLineAdded(Component arg0)
method_57499(class_2561 arg0)
with(Text line)
m_320019_(C_4996_ arg0)
public void
a(cul$b arg0, Consumer<wz> arg1, cwm 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)
m_319025_(C_1381_$C_313602_ p_332607_, Consumer<C_4996_> p_328590_, C_1431_ arg2)
public List<Component>
a()
lines()
comp_2400()
lines()
f_316209_()
public List<Component>
b()
styledLines()
comp_2401()
styledLines()
f_317111_()