21 void Connect(
const std::string& address,
const std::string& login,
const bool force_microsoft_account =
false);
41 using ProtocolCraft::Handler::Handle;
43#if PROTOCOL_VERSION < 755
44 virtual void Handle(ProtocolCraft::ClientboundContainerAckPacket& msg)
override;
48#if PROTOCOL_VERSION > 763
51#if PROTOCOL_VERSION > 768
The base client handling connection with a server.
void Respawn()
Ask to respawn when dead.
std::shared_ptr< NetworkManager > GetNetworkManager() const
bool GetShouldBeClosed() const
virtual ~ConnectionClient()
void SendChatMessage(const std::string &msg)
Send a message in the game chat.
virtual void Handle(ProtocolCraft::ClientboundLoginDisconnectPacket &msg) override
void SendChatCommand(const std::string &command)
Send a command in the game chat.
void Connect(const std::string &address, const std::string &login, const bool force_microsoft_account=false)
Connect the client to the server at address.
virtual void Disconnect()
std::shared_ptr< NetworkManager > network_manager
void SetShouldBeClosed(const bool b)