WrittenBook
Extends WritableBookBase
Constants
GENERATION_COPY
php
public const GENERATION_COPY = 1GENERATION_COPY_OF_COPY
php
public const GENERATION_COPY_OF_COPY = 2GENERATION_ORIGINAL
php
public const GENERATION_ORIGINAL = 0GENERATION_TATTERED
php
public const GENERATION_TATTERED = 3TAG_AUTHOR
php
public const TAG_AUTHOR = "author"TAG_GENERATION
php
public const TAG_GENERATION = "generation"TAG_TITLE
php
public const TAG_TITLE = "title"Methods
deserializeCompoundTag() protected
php
protected function deserializeCompoundTag(\pocketmine\nbt\tag\CompoundTag $tag) : voidgetAuthor()
php
public function getAuthor() : stringReturns the author of this book. This is not a reliable way to get the name of the player who signed this book. The author can be set to anything when signing a book.
getGeneration()
php
public function getGeneration() : intReturns the generation of the book. Generations higher than 1 can not be copied.
getMaxStackSize()
php
public function getMaxStackSize() : intgetTitle()
php
public function getTitle() : stringReturns the title of this book.
serializeCompoundTag() protected
php
protected function serializeCompoundTag(\pocketmine\nbt\tag\CompoundTag $tag) : voidsetAuthor()
php
public function setAuthor(string $authorName) : selfSets the author of this book.
setGeneration()
php
public function setGeneration(int $generation) : selfSets the generation of a book.
setTitle()
php
public function setTitle(string $title) : selfSets the author of this book.
