net.minecraft.world.item.component

public record WrittenBookContent

implements BookContent<Component, WrittenBookContent>

cyb
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
net.minecraft.src.C_313568_
net.minecraft.world.item.component.WrittenBookContent

Field summary

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

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<wz> 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)
m_323953_(com.mojang.serialization.Codec<C_4996_> p_335093_)
public static com.mojang.serialization.Codec<List<Filterable<Component>>>
a(com.mojang.serialization.Codec<wz> 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)
m_322748_(com.mojang.serialization.Codec<C_4996_> p_329056_)
public WrittenBookContent
b()
tryCraftCopy()
method_57519()
m_pscktqqc()
copy()
tryCraftCopy()
m_319355_()
public WrittenBookContent
a(et arg0, cmx 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)
m_318598_(C_2969_ p_329707_, C_1141_ arg1)
public WrittenBookContent
c()
markResolved()
method_57527()
m_vhgxgmih()
asResolved()
markResolved()
m_321462_()
private static Optional<Filterable<Component>>
a(et arg0, cmx arg1, arl<wz> 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)
m_321796_(C_2969_ p_335264_, C_1141_ p_333342_, C_313766_<C_4996_> p_328841_)
private static boolean
a(wz arg0, jo$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 lookup)
isPageTooLarge(Text text, HolderLookup$Provider lookupProvider)
m_324383_(C_4996_ p_330243_, C_213466_$C_254607_ p_333440_)
public List<Component>
a(boolean arg0)
getPages(boolean arg0)
method_57525(boolean arg0)
m_hvzjkpvt(boolean arg0)
getPages(boolean shouldFilter)
getPages(boolean shouldFilter)
m_323359_(boolean arg0)
public WrittenBookContent
b(List<arl<wz>> 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)
m_319955_(List<C_313766_<C_4996_>> arg0)
public Filterable<String>
d()
title()
comp_2419()
m_bxaxrqdc()
title()
title()
f_316867_()
public String
e()
author()
comp_2420()
m_scnlayvz()
author()
author()
f_316008_()
public int
f()
generation()
comp_2421()
m_wevccauj()
generation()
generation()
f_314404_()
public List<Filterable<Component>>
a()
pages()
comp_2422()
m_zsyzprjm()
pages()
pages()
m_319402_()
public boolean
g()
resolved()
comp_2423()
m_jwotajms()
resolved()
resolved()
f_316486_()