net.minecraft.world.item.component

public record WrittenBookContent

implements BookContent<Component, WrittenBookContent>

dax
net.minecraft.world.item.component.WrittenBookContent
net.minecraft.class_9302
net.minecraft.component.type.WrittenBookContentComponent
net.minecraft.world.item.component.WrittenBookContent

Field summary

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

Constructor summary

ModifierConstructor
public (Filterable<String> arg0, String arg1, int arg2, List<Filterable<Component>> arg3, boolean arg4)

Method summary

Modifier and TypeMethod
private static com.mojang.serialization.Codec<Filterable<Component>>
b(com.mojang.serialization.Codec<xv> arg0)
pageCodec(com.mojang.serialization.Codec<Component> arg0)
method_58437(com.mojang.serialization.Codec<class_2561> arg0)
createPageCodec(com.mojang.serialization.Codec<Text> textCodec)
public static com.mojang.serialization.Codec<List<Filterable<Component>>>
a(com.mojang.serialization.Codec<xv> arg0)
pagesCodec(com.mojang.serialization.Codec<Component> arg0)
method_58436(com.mojang.serialization.Codec<class_2561> arg0)
createPagesCodec(com.mojang.serialization.Codec<Text> textCodec)
public WrittenBookContent
b()
tryCraftCopy()
method_57519()
copy()
public WrittenBookContent
a(ew arg0, cpx arg1)
resolve(CommandSourceStack arg0, Player arg1)
method_57521(class_2168 arg0, class_1657 arg1)
resolve(ServerCommandSource source, PlayerEntity player)
public WrittenBookContent
c()
markResolved()
method_57527()
asResolved()
private static Optional<Filterable<Component>>
a(ew arg0, cpx arg1, asz<xv> 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)
private static boolean
a(xv arg0, js$a arg1)
isPageTooLarge(Component arg0, HolderLookup$Provider arg1)
method_57524(class_2561 arg0, class_7225$class_7874 arg1)
exceedsSerializedLengthLimit(Text text, RegistryWrapper$WrapperLookup registries)
public List<Component>
a(boolean arg0)
getPages(boolean arg0)
method_57525(boolean arg0)
getPages(boolean shouldFilter)
public WrittenBookContent
b(List<asz<xv>> arg0)
withReplacedPages(List<Filterable<Component>> arg0)
method_58188(List<class_9262<class_2561>> arg0)
withPages(List<RawFilteredPair<Text>> arg0)
public Filterable<String>
d()
title()
comp_2419()
title()
public String
e()
author()
comp_2420()
author()
public int
f()
generation()
comp_2421()
generation()
public List<Filterable<Component>>
a()
pages()
comp_2422()
pages()
public boolean
g()
resolved()
comp_2423()
resolved()