13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
18use Ramsey\Uuid\UuidInterface;
22 public const NETWORK_ID = ProtocolInfo::EMOTE_LIST_PACKET;
24 private int $playerActorRuntimeId;
26 private array $emoteIds;
32 public static function create(
int $playerActorRuntimeId, array $emoteIds) : self{
34 $result->playerActorRuntimeId = $playerActorRuntimeId;
35 $result->emoteIds = $emoteIds;
39 public function getPlayerActorRuntimeId() : int{ return $this->playerActorRuntimeId; }
42 public function getEmoteIds() : array{ return $this->emoteIds; }
45 $this->playerActorRuntimeId = $in->getActorRuntimeId();
48 $this->emoteIds[] = $in->
getUUID();
53 $out->putActorRuntimeId($this->playerActorRuntimeId);
55 foreach($this->emoteIds as $emoteId){
56 $out->putUUID($emoteId);
61 return $handler->handleEmoteList($this);
decodePayload(PacketSerializer $in)
encodePayload(PacketSerializer $out)
handle(PacketHandlerInterface $handler)
static create(int $playerActorRuntimeId, array $emoteIds)
putUnsignedVarInt(int $v)