net.minecraft.world.item.component

public record WrittenBookContent

implements BookContent<Component, WrittenBookContent>, TooltipProvider

dcn
net.minecraft.world.item.component.WrittenBookContent
net.minecraft.class_9302
net.minecraft.unmapped.C_xfpcozbo
net.minecraft.component.type.WrittenBookContentComponent
net.minecraft.component.type.WrittenBookContentComponent

Field summary

Modifier and TypeField
private final Filterable<String>
k
title
comp_2419
f_lfpaaaqp
title
title
private final String
l
author
comp_2420
f_adodycxc
author
author
private final int
m
generation
comp_2421
f_wnmjfalk
generation
generation
private final List<Filterable<Component>>
n
pages
comp_2422
f_lymrgfxu
pages
pages
private final boolean
o
resolved
comp_2423
f_hgwaxbdi
resolved
resolved
public static final WrittenBookContent
a
EMPTY
field_49829
f_znyohjhm
DEFAULT
DEFAULT
public static final int
b
PAGE_LENGTH
field_49375
f_fdkswtho
MAX_SERIALIZED_PAGE_LENGTH
MAX_PAGE_LENGTH
public static final int
c
TITLE_LENGTH
field_49377
f_wknzzapl
field_49377
TITLE_LENGTH
public static final int
d
TITLE_MAX_LENGTH
field_49378
f_umdfmcaa
MAX_TITLE_LENGTH
MAX_TITLE_LENGTH
public static final int
e
MAX_GENERATION
field_49379
f_ijykbbfr
MAX_GENERATION
MAX_GENERATION
public static final int
f
MAX_CRAFTABLE_GENERATION
field_49380
f_mokxmpxm
UNCOPIABLE_GENERATION
MAX_CRAFTABLE_GENERATION
public static final com.mojang.serialization.Codec<Component>
g
CONTENT_CODEC
field_49383
f_omgwxtll
PAGE_CODEC
PAGE_CODEC
public static final com.mojang.serialization.Codec<List<Filterable<Component>>>
h
PAGES_CODEC
field_49384
f_mqoqgaui
PAGES_CODEC
PAGES_CODEC
public static final com.mojang.serialization.Codec<WrittenBookContent>
i
CODEC
field_49381
f_iuyztjig
CODEC
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, WrittenBookContent>
j
STREAM_CODEC
field_49382
f_eqykdkjs
PACKET_CODEC
PACKET_CODEC

Constructor summary

ModifierConstructor
public (Filterable<String> title, String author, int generation, List<Filterable<Component>> pages, boolean resolved)

Method summary

Modifier and TypeMethod
private static com.mojang.serialization.Codec<Filterable<Component>>
b(com.mojang.serialization.Codec<wy> arg0)
pageCodec(com.mojang.serialization.Codec<Component> arg0)
method_58437(com.mojang.serialization.Codec<class_2561> arg0)
m_pstvsuuk(com.mojang.serialization.Codec<C_rdaqiwdt> arg0)
createPageCodec(com.mojang.serialization.Codec<Text> textCodec)
createPageCodec(com.mojang.serialization.Codec<Text> codec)
public static com.mojang.serialization.Codec<List<Filterable<Component>>>
a(com.mojang.serialization.Codec<wy> arg0)
pagesCodec(com.mojang.serialization.Codec<Component> arg0)
method_58436(com.mojang.serialization.Codec<class_2561> arg0)
m_brthpkaj(com.mojang.serialization.Codec<C_rdaqiwdt> arg0)
createPagesCodec(com.mojang.serialization.Codec<Text> textCodec)
createPagesCodec(com.mojang.serialization.Codec<Text> codec)
public WrittenBookContent
b()
tryCraftCopy()
method_57519()
m_pscktqqc()
copy()
tryCraftCopy()
public static boolean
a(czd arg0, ei arg1, crc arg2)
resolveForItem(ItemStack arg0, CommandSourceStack arg1, Player arg2)
method_66337(class_1799 arg0, class_2168 arg1, class_1657 arg2)
m_ufgbmsxk(C_sddaxwyk arg0, C_pennblrk arg1, C_jzrpycqo arg2)
resolveInStack(ItemStack stack, ServerCommandSource commandSource, PlayerEntity player)
m_ufgbmsxk(ItemStack stack, ServerCommandSource source, PlayerEntity player)
public WrittenBookContent
a(ei arg0, crc arg1)
resolve(CommandSourceStack arg0, Player arg1)
method_57521(class_2168 arg0, class_1657 arg1)
m_kvuqbnkt(C_pennblrk arg0, C_jzrpycqo arg1)
resolve(ServerCommandSource source, PlayerEntity player)
resolve(ServerCommandSource source, PlayerEntity player)
public WrittenBookContent
c()
markResolved()
method_57527()
m_vhgxgmih()
asResolved()
markResolved()
private static Optional<Filterable<Component>>
a(ei arg0, crc arg1, asi<wy> arg2)
resolvePage(CommandSourceStack arg0, Player arg1, Filterable<Component> arg2)
method_57522(class_2168 arg0, class_1657 arg1, class_9262<class_2561> arg2)
m_sbeqlnvu(C_pennblrk arg0, C_jzrpycqo arg1, C_cihikqyk<C_rdaqiwdt> arg2)
resolve(ServerCommandSource source, PlayerEntity player, RawFilteredPair<Text> page)
resolvePage(ServerCommandSource source, PlayerEntity player, Filterable<Text> page)
private static boolean
a(wy arg0, jg$a arg1)
isPageTooLarge(Component arg0, HolderLookup$Provider arg1)
method_57524(class_2561 arg0, class_7225$class_7874 arg1)
m_omuwfolv(C_rdaqiwdt arg0, C_vtbxyypo$C_etmlgbig arg1)
exceedsSerializedLengthLimit(Text text, RegistryWrapper$WrapperLookup registries)
isPageTooLarge(Text arg0, HolderLookup$Provider lookupProvider)
public List<Component>
a(boolean arg0)
getPages(boolean arg0)
method_57525(boolean arg0)
m_hvzjkpvt(boolean arg0)
getPages(boolean shouldFilter)
getPages(boolean shouldFilter)
public WrittenBookContent
b(List<asi<wy>> arg0)
withReplacedPages(List<Filterable<Component>> arg0)
method_58188(List<class_9262<class_2561>> arg0)
m_ojlreyzs(List<C_cihikqyk<C_rdaqiwdt>> arg0)
withPages(List<RawFilteredPair<Text>> arg0)
withReplacedPages(List<Filterable<Text>> arg0)
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 Filterable<String>
d()
title()
comp_2419()
m_bxaxrqdc()
title()
title()
public String
e()
author()
comp_2420()
m_scnlayvz()
author()
author()
public int
f()
generation()
comp_2421()
m_wevccauj()
generation()
generation()
public List<Filterable<Component>>
a()
pages()
comp_2422()
m_zsyzprjm()
pages()
pages()
public boolean
g()
resolved()
comp_2423()
m_jwotajms()
resolved()
resolved()