13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol\types\inventory;
25 private int $containerId,
26 private array $changedSlotIndexes
29 public function getContainerId() : int{ return $this->containerId; }
35 $containerId = $in->getByte();
38 $changedSlots[] = $in->
getByte();
40 return new self($containerId, $changedSlots);
44 $out->putByte($this->containerId);
46 foreach($this->changedSlotIndexes as $index){
47 $out->putByte($index);
__construct(private int $containerId, private array $changedSlotIndexes)
putUnsignedVarInt(int $v)