WritableBookContent

Link to writablebookcontent

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.item.component.WritableBookContent;

Extending Record

Link to extending-record

WritableBookContent extends Record. That means all methods available in Record are also available in WritableBookContent

Implemented Interfaces

Link to implemented-interfaces

WritableBookContent implements the following interfaces. That means all methods defined in these interfaces are also available in WritableBookContent

Name: of

Return Type: WritableBookContent

ZenScript
Copy
WritableBookContent.of(pages as stdlib.List<Filterable<string>>) as WritableBookContent
ParameterType
Parameter
pages
Type
stdlib.List<Filterable<string>>

Name: getPages

Return Type: stdlib.List<string>

ZenScript
Copy
WritableBookContent.getPages(filtered as boolean) as stdlib.List<string>
ParameterType
Parameter
filtered
Type
boolean

Link to withReplacedPages

Name: withReplacedPages

Return Type: WritableBookContent

ZenScript
Copy
WritableBookContent.withReplacedPages(pages as stdlib.List<Filterable<string>>) as WritableBookContent
ParameterType
Parameter
pages
Type
stdlib.List<Filterable<string>>
NameTypeHas GetterHas Setter
Name
pages
Type
stdlib.List<Filterable<string>>
Has Getter
true
Has Setter
false