13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
21 public const NETWORK_ID = ProtocolInfo::SPAWN_EXPERIENCE_ORB_PACKET;
31 $result->position = $position;
32 $result->amount = $amount;
37 $this->position = $in->getVector3();
42 $out->putVector3($this->position);
47 return $handler->handleSpawnExperienceOrb($this);
static create(Vector3 $position, int $amount)
encodePayload(PacketSerializer $out)
decodePayload(PacketSerializer $in)
handle(PacketHandlerInterface $handler)