mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-27 21:25:41 +00:00
WritableBookBase: Make setPages() fluent
This commit is contained in:
parent
3d0e47ba14
commit
73a847123b
@ -157,9 +157,12 @@ abstract class WritableBookBase extends Item{
|
||||
|
||||
/**
|
||||
* @param WritableBookPage[] $pages
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPages(array $pages) : void{
|
||||
public function setPages(array $pages) : self{
|
||||
$this->pages = new Deque($pages);
|
||||
return $this;
|
||||
}
|
||||
|
||||
protected function deserializeCompoundTag(CompoundTag $tag) : void{
|
||||
|
Loading…
x
Reference in New Issue
Block a user