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