13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol\types\inventory;
24 protected array $actions = [];
30 return $this->actions;
33 abstract public function getTypeId() : int;
40 $actionCount = $stream->getUnsignedVarInt();
41 for($i = 0; $i < $actionCount; ++$i){
44 $this->decodeData($stream);
54 $stream->putUnsignedVarInt(count($this->actions));
55 foreach($this->actions as $action){
56 $action->write($stream);
58 $this->encodeData($stream);
decode(PacketSerializer $stream)
decodeData(PacketSerializer $stream)