use pocketmine\network\mcpe\handler\PacketHandler; class ItemFrameDropItemPacket extends DataPacket implements ServerboundPacket{ public const NETWORK_ID = ProtocolInfo::ITEM_FRAME_DROP_ITEM_PACKET; /** @var int */ public $x; /** @var int */ public $y; /** @var int */ public $z; protected function decodePayload() : void{ $this->buf->getBlockPosition($this->x, $this->y, $this->z); } protected function encodePayload() : void{ $this->buf->putBlockPosition($this->x, $this->y, $this->z); } public function handle(PacketHandler $handler) : bool{ return $handler->handleItemFrameDropItem($this); } }