WrittenBookContent

Link to writtenbookcontent

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.WrittenBookContent;

Extending Record

Link to extending-record

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

Implemented Interfaces

Link to implemented-interfaces

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

Name: getPages

Return Type: stdlib.List<Component>

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

Name: markResolved

Return Type: WrittenBookContent

ZenScript
Copy
// WrittenBookContent.markResolved() as WrittenBookContent

myWrittenBookContent.markResolved();

Name: tryCraftCopy

Return Type: WrittenBookContent?

ZenScript
Copy
// WrittenBookContent.tryCraftCopy() as WrittenBookContent?

myWrittenBookContent.tryCraftCopy();

Link to withReplacedPages

Name: withReplacedPages

Return Type: WrittenBookContent

ZenScript
Copy
WrittenBookContent.withReplacedPages(pages as stdlib.List<Filterable<Component>>) as WrittenBookContent
ParameterType
Parameter
pages
Type
stdlib.List<Filterable<Component>>
NameTypeHas GetterHas Setter
Name
author
Type
string
Has Getter
true
Has Setter
false
Name
generation
Type
int
Has Getter
true
Has Setter
false
Name
pages
Type
stdlib.List<Filterable<Component>>
Has Getter
true
Has Setter
false
Name
resolved
Type
boolean
Has Getter
true
Has Setter
false
Name
title
Type
Filterable<string>
Has Getter
true
Has Setter
false