67 $out->putByte($this->type);
68 $out->putByte($this->inventorySlot);
71 case self::TYPE_REPLACE_PAGE:
72 case self::TYPE_ADD_PAGE:
73 $out->putByte($this->pageNumber);
74 $out->putString($this->text);
75 $out->putString($this->photoName);
77 case self::TYPE_DELETE_PAGE:
78 $out->putByte($this->pageNumber);
80 case self::TYPE_SWAP_PAGES:
81 $out->putByte($this->pageNumber);
82 $out->putByte($this->secondaryPageNumber);
84 case self::TYPE_SIGN_BOOK:
85 $out->putString($this->title);
86 $out->putString($this->author);
87 $out->putString($this->xuid);
90 throw new \InvalidArgumentException(
"Unknown book edit type $this->type!");