WritableBookContent

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.item.component.WritableBookContent;

Implements

WritableBookContent implements the following interfaces:

BookContent<WritableBookContent, string>

Members

getPages(filtered as bool) as List<string>
script.zs
// WritableBookContent.getPages(filtered as bool) as List<string>;
myWritableBookContent.getPages(myBool);

Parameters:

filtered Type: bool

Return Type: List<string>

static of(pages as List<Filterable<string>>) as WritableBookContent
script.zs
// WritableBookContent.of(pages as List<Filterable<string>>) as WritableBookContent;
WritableBookContent.of(myList);

Parameters:

pages Type: List<Filterable<string>>

Return Type: WritableBookContent

Getter
script.zs
// WritableBookContent.pages as List<Filterable<string>>
myWritableBookContent.pages

Return Type: List<Filterable<string>>

withReplacedPages(pages as List<Filterable<string>>) as WritableBookContent
script.zs
// WritableBookContent.withReplacedPages(pages as List<Filterable<string>>) as WritableBookContent;
myWritableBookContent.withReplacedPages(myList);

Parameters:

pages Type: List<Filterable<string>>

Return Type: WritableBookContent