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 Copyimport 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
Methods
Link to methods
Name: getPages
Return Type: stdlib.List<Component>
ZenScript CopyWrittenBookContent.getPages(filtered as boolean) as stdlib.List<Component>
Parameter | Type |
---|---|
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();
Name: withReplacedPages
Return Type: WrittenBookContent
ZenScript CopyWrittenBookContent.withReplacedPages(pages as stdlib.List<Filterable<Component>>) as WrittenBookContent
Parameter | Type |
---|---|
Parameter pages | Type stdlib.List<Filterable<Component>> |
Properties
Link to properties
Name | Type | Has Getter | Has 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 |