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.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
title
f_316867_
private final String
l
author
comp_2420
author
f_316008_
private final int
m
generation
comp_2421
generation
f_314404_
private final List<Filterable<Component>>
n
pages
comp_2422
pages
f_314269_
private final boolean
o
resolved
comp_2423
resolved
f_316486_
public static final WrittenBookContent
a
EMPTY
field_49829
DEFAULT
f_315751_
public static final int
b
PAGE_LENGTH
field_49375
MAX_SERIALIZED_PAGE_LENGTH
f_316608_
public static final int
c
TITLE_LENGTH
field_49377
field_49377
f_314147_
public static final int
d
TITLE_MAX_LENGTH
field_49378
MAX_TITLE_LENGTH
f_314437_
public static final int
e
MAX_GENERATION
field_49379
MAX_GENERATION
f_314113_
public static final int
f
MAX_CRAFTABLE_GENERATION
field_49380
UNCOPIABLE_GENERATION
f_316111_
public static final com.mojang.serialization.Codec<Component>
g
CONTENT_CODEC
field_49383
PAGE_CODEC
f_315642_
public static final com.mojang.serialization.Codec<List<Filterable<Component>>>
h
PAGES_CODEC
field_49384
PAGES_CODEC
f_316151_
public static final com.mojang.serialization.Codec<WrittenBookContent>
i
CODEC
field_49381
CODEC
f_315766_
public static final StreamCodec<RegistryFriendlyByteBuf, WrittenBookContent>
j
STREAM_CODEC
field_49382
PACKET_CODEC
f_315227_

Constructor summary

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

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)
createPageCodec(com.mojang.serialization.Codec<Text> textCodec)
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)
createPagesCodec(com.mojang.serialization.Codec<Text> textCodec)
m_322748_(com.mojang.serialization.Codec<C_4996_> p_329056_)
public WrittenBookContent
b()
tryCraftCopy()
method_57519()
copy()
m_319355_()
public WrittenBookContent
a(et arg0, cmx arg1)
resolve(CommandSourceStack arg0, Player arg1)
method_57521(class_2168 arg0, class_1657 arg1)
resolve(ServerCommandSource source, PlayerEntity player)
m_318598_(C_2969_ p_329707_, C_1141_ arg1)
public WrittenBookContent
c()
markResolved()
method_57527()
asResolved()
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)
resolve(ServerCommandSource source, PlayerEntity player, RawFilteredPair<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)
exceedsSerializedLengthLimit(Text text, RegistryWrapper$WrapperLookup lookup)
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)
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)
withPages(List<RawFilteredPair<Text>> arg0)
m_319955_(List<C_313766_<C_4996_>> arg0)
public Filterable<String>
d()
title()
comp_2419()
title()
f_316867_()
public String
e()
author()
comp_2420()
author()
f_316008_()
public int
f()
generation()
comp_2421()
generation()
f_314404_()
public List<Filterable<Component>>
a()
pages()
comp_2422()
pages()
m_319402_()
public boolean
g()
resolved()
comp_2423()
resolved()
f_316486_()