net.minecraft.core.component.predicates

public record WrittenBookPredicate

implements SingleComponentItemPredicate<WrittenBookContent>

lb
net.minecraft.core.component.predicates.WrittenBookPredicate
net.minecraft.class_9663
net.minecraft.predicate.item.WrittenBookContentPredicate

Field summary

Modifier and TypeField
private final Optional<CollectionPredicate<Filterable<Component>, WrittenBookPredicate$PagePredicate>>
c
pages
comp_2642
pages
private final Optional<String>
d
author
comp_2643
author
private final Optional<String>
e
title
comp_2644
title
private final MinMaxBounds$Ints
f
generation
comp_2645
generation
private final Optional<Boolean>
g
resolved
comp_2646
resolved
public static final com.mojang.serialization.Codec<WrittenBookPredicate>
a
CODEC
field_51400
CODEC

Constructor summary

ModifierConstructor
public (Optional<CollectionPredicate<Filterable<Component>, WrittenBookPredicate$PagePredicate>> arg0, Optional<String> arg1, Optional<String> arg2, MinMaxBounds$Ints arg3, Optional<Boolean> arg4)

Method summary

Modifier and TypeMethod
public DataComponentType<WrittenBookContent>
a()
componentType()
method_58163()
getComponentType()
public boolean
a(dcc arg0)
matches(WrittenBookContent arg0)
method_59697(class_9302 arg0)
test(WrittenBookContentComponent arg0)
public Optional<CollectionPredicate<Filterable<Component>, WrittenBookPredicate$PagePredicate>>
b()
pages()
comp_2642()
pages()
public Optional<String>
c()
author()
comp_2643()
author()
public Optional<String>
d()
title()
comp_2644()
title()
public MinMaxBounds$Ints
e()
generation()
comp_2645()
generation()
public Optional<Boolean>
f()
resolved()
comp_2646()
resolved()