13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::SET_PLAYER_GAME_TYPE_PACKET;
27 public static function create(
int $gamemode) : self{
29 $result->gamemode = $gamemode;
34 $this->gamemode = $in->getVarInt();
38 $out->putVarInt($this->gamemode);
42 return $handler->handleSetPlayerGameType($this);
handle(PacketHandlerInterface $handler)
encodePayload(PacketSerializer $out)
decodePayload(PacketSerializer $in)
static create(int $gamemode)