mirror of https://github.com/LOOHP/Limbo.git
83 lines
1.6 KiB
Java
83 lines
1.6 KiB
Java
package com.loohp.limbo.events.status;
|
|
|
|
import java.awt.image.BufferedImage;
|
|
|
|
import com.loohp.limbo.events.Event;
|
|
import com.loohp.limbo.network.ClientConnection;
|
|
|
|
import net.kyori.adventure.text.Component;
|
|
|
|
public class StatusPingEvent extends Event {
|
|
|
|
private ClientConnection connection;
|
|
private String version;
|
|
private int protocol;
|
|
private Component motd;
|
|
private int maxPlayers;
|
|
private int playersOnline;
|
|
private BufferedImage favicon;
|
|
|
|
public StatusPingEvent(ClientConnection connection, String version, int protocol, Component motd, int maxPlayers, int playersOnline, BufferedImage favicon) {
|
|
this.connection = connection;
|
|
this.version = version;
|
|
this.protocol = protocol;
|
|
this.motd = motd;
|
|
this.maxPlayers = maxPlayers;
|
|
this.playersOnline = playersOnline;
|
|
this.favicon = favicon;
|
|
}
|
|
|
|
public ClientConnection getConnection() {
|
|
return connection;
|
|
}
|
|
|
|
public String getVersion() {
|
|
return version;
|
|
}
|
|
|
|
public void setVersion(String version) {
|
|
this.version = version;
|
|
}
|
|
|
|
public int getProtocol() {
|
|
return protocol;
|
|
}
|
|
|
|
public void setProtocol(int protocol) {
|
|
this.protocol = protocol;
|
|
}
|
|
|
|
public Component getMotd() {
|
|
return motd;
|
|
}
|
|
|
|
public void setMotd(Component motd) {
|
|
this.motd = motd;
|
|
}
|
|
|
|
public int getMaxPlayers() {
|
|
return maxPlayers;
|
|
}
|
|
|
|
public void setMaxPlayers(int maxPlayers) {
|
|
this.maxPlayers = maxPlayers;
|
|
}
|
|
|
|
public int getPlayersOnline() {
|
|
return playersOnline;
|
|
}
|
|
|
|
public void setPlayersOnline(int playersOnline) {
|
|
this.playersOnline = playersOnline;
|
|
}
|
|
|
|
public BufferedImage getFavicon() {
|
|
return favicon;
|
|
}
|
|
|
|
public void setFavicon(BufferedImage favicon) {
|
|
this.favicon = favicon;
|
|
}
|
|
|
|
}
|