3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/network/ServerConnectivityTestResult.h"
7#include "mc/network/ServerLocator.h"
8#include "mc/world/level/GameType.h"
23 virtual void startAnnouncingServer(
24 ::std::string
const& playerName,
25 ::std::string
const& worldName,
29 bool isJoinableThroughServerScreen,
34 virtual void stopAnnouncingServer() ;
36 virtual void startServerDiscovery(
::PortPair ports) ;
40 virtual void addCustomServer(::std::string
const& address,
int port) ;
42 virtual void stopServerDiscovery() ;
44 virtual ::std::vector<::PingedCompatibleServer> getServerList()
const ;
46 virtual void clearServerList() ;
48 virtual void update() ;
50 virtual float getPingTimeForGUID(::std::string
const& guid) ;
52 virtual void checkCanConnectToCustomServerAsync(
53 ::std::string hostIpAddress,
55 ::std::function<
void(::ServerConnectivityTestResult)> callback
63 ::std::string
const& playerName,
64 ::std::string
const& worldName,
68 bool isJoinableThroughServerScreen,
92 ::std::string hostIpAddress,
94 ::std::function<
void(::ServerConnectivityTestResult)> callback
Definition AsynchronousIPResolver.h:5
Definition ServerLocator.h:17
Definition StubServerLocator.h:17
MCAPI void $stopAnnouncingServer()
MCAPI void $addCustomServer(::std::string const &address, int port)
MCAPI void $startAnnouncingServer(::std::string const &playerName, ::std::string const &worldName, ::GameType gameType, int numPlayers, int maxNumPlayers, bool isJoinableThroughServerScreen, bool isEditorWorld, bool isHardcore)
static MCAPI void ** $vftable()
MCAPI void $checkCanConnectToCustomServerAsync(::std::string hostIpAddress, int port, ::std::function< void(::ServerConnectivityTestResult)> callback)
MCAPI void $addCustomServer(::AsynchronousIPResolver const &futureIP, int port)
MCAPI void $startServerDiscovery(::PortPair ports)
MCAPI ::std::vector<::PingedCompatibleServer > $getServerList() const
MCAPI float $getPingTimeForGUID(::std::string const &guid)
MCAPI void $clearServerList()
MCAPI void $stopServerDiscovery()
Definition PingedCompatibleServer.h:5