itemId = $this->getShort(); $this->action = $this->getLInt(); } public function encodePayload() : void{ $this->putShort($this->itemId); $this->putLInt($this->action); } public function handle(PacketHandler $handler) : bool{ return $handler->handleCompletedUsingItem($this); } }