Record Class DataComponentPredicate.WrittenBook

java.lang.Object
java.lang.Record
net.minestom.server.instance.block.predicate.DataComponentPredicate.WrittenBook
Record Components:
pages - Predicates to match against the book's pages, or null to ignore
author - The expected author, or null to ignore
title - The expected title, or null to ignore
generation - The expected generation, or null to ignore
resolved - The expected value of WrittenBookContent.resolved(), or null to ignore
All Implemented Interfaces:
Predicate<DataComponent.Holder>, DataComponentPredicate, DataComponentPredicate.Registered
Enclosing interface:
DataComponentPredicate

public static record DataComponentPredicate.WrittenBook(@Nullable CollectionPredicate<FilteredText<Component>, DataComponentPredicate.WrittenBook.PagePredicate> pages, @Nullable String author, @Nullable String title, Range.Int generation, @Nullable Boolean resolved) extends Record implements DataComponentPredicate.Registered
Tests the content of pages in the DataComponents.WRITTEN_BOOK_CONTENT component.
See Also: