net.minecraft.world.item.component

public record ItemLore

implements TooltipProvider

dbw
net.minecraft.world.item.component.ItemLore
net.minecraft.class_9290
net.minecraft.unmapped.C_zzkbopci
net.minecraft.component.type.LoreComponent
net.minecraft.component.type.LoreComponent

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public ItemLore
a(wy arg0)
withLineAdded(Component arg0)
method_57499(class_2561 arg0)
m_ajemqxcn(C_rdaqiwdt arg0)
with(Text line)
of(Text line)
public void
a(cyz$b arg0, Consumer<wy> arg1, das arg2, ke arg3)
addToTooltip(Item$TooltipContext arg0, Consumer<Component> arg1, TooltipFlag arg2, DataComponentGetter arg3)
method_57409(class_1792$class_9635 arg0, Consumer<class_2561> arg1, class_1836 arg2, class_9473 arg3)
m_eqoeoqpg(C_vorddnax$C_rdhfmrgz arg0, Consumer<C_rdaqiwdt> arg1, C_taebrtdw arg2, C_hmcnusfu arg3)
appendTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipType arg2, ComponentsAccess arg3)
appendToTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipConfig arg2, ke arg3)
public List<Component>
a()
lines()
comp_2400()
m_cqzsywis()
lines()
lines()
public List<Component>
b()
styledLines()
comp_2401()
m_nbthtyrl()
styledLines()
styledLines()