Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
|
#include <serverlist.h>
Public Member Functions | |
ServerListPacket () | |
Construct a new Server List Packet object. | |
~ServerListPacket () override=default | |
Destroy the Server List Packet object. | |
void | read (IMCStream *stream) override |
Read Packet Data. | |
Public Member Functions inherited from IPacket | |
virtual | ~IPacket ()=default |
Destroy the IPacket object. | |
void | send (IMCStream *stream) |
Sends a Packet in Minecraft format. | |
Static Public Member Functions | |
static void | loadLua (lua_State *state, const char *baseNamespaceName) |
Loads this Packet as a lua class. | |
Public Attributes | |
int | maxPlayers |
Max players. | |
int | onlinePlayers |
Online players. | |
ChatMessage | motd |
Message of The Day (MoTD) | |
Public Attributes inherited from IPacket | |
int | id |
Packet Id. | |
Protected Member Functions | |
void | write (IMCStream *stream) override |
Write Packet Data. | |
Protected Member Functions inherited from IPacket | |
IPacket (int id) | |
Construct a new IPacket object. | |
Server List packet.
Packet for clients that load the status data from the server such as the MoTD, max players, online players and so on.
Loads this Packet as a lua class.
state | the state to load to |
baseNamespaceName | the namespace to load to |
Read Packet Data.
Reads server list data from the stream, does nothing for the current protocol version.
stream | the stream to read from |
Implements IPacket.
Write Packet Data.
Writes server list data to stream
stream | the stream to write to |
Implements IPacket.
int ServerListPacket::maxPlayers |
Max players.
Max number of players allowed by the Config, defaults to config.
ChatMessage ServerListPacket::motd |
Message of The Day (MoTD)
Defaults to config.
int ServerListPacket::onlinePlayers |
Online players.
The number of online players at this time. Defaults to actual number of players.