Package com.loohp.limbo.events.status
Class StatusPingEvent
java.lang.Object
com.loohp.limbo.events.Event
com.loohp.limbo.events.status.StatusPingEvent
-
Constructor Summary
ConstructorsConstructorDescriptionStatusPingEvent
(ClientConnection connection, String version, int protocol, net.kyori.adventure.text.Component motd, int maxPlayers, int playersOnline, byte[] favicon) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
int
net.kyori.adventure.text.Component
getMotd()
int
int
void
setFavicon
(byte[] favicon) void
setMaxPlayers
(int maxPlayers) void
setMotd
(net.kyori.adventure.text.Component motd) void
setPlayersOnline
(int playersOnline) void
setProtocol
(int protocol) void
setVersion
(String version)
-
Constructor Details
-
StatusPingEvent
public StatusPingEvent(ClientConnection connection, String version, int protocol, net.kyori.adventure.text.Component motd, int maxPlayers, int playersOnline, byte[] favicon)
-
-
Method Details
-
getConnection
-
getVersion
-
setVersion
-
getProtocol
public int getProtocol() -
setProtocol
public void setProtocol(int protocol) -
getMotd
public net.kyori.adventure.text.Component getMotd() -
setMotd
public void setMotd(net.kyori.adventure.text.Component motd) -
getMaxPlayers
public int getMaxPlayers() -
setMaxPlayers
public void setMaxPlayers(int maxPlayers) -
getPlayersOnline
public int getPlayersOnline() -
setPlayersOnline
public void setPlayersOnline(int playersOnline) -
getFavicon
public byte[] getFavicon() -
setFavicon
public void setFavicon(byte[] favicon)
-