70 lines
1.6 KiB
Java
70 lines
1.6 KiB
Java
package xyz.mcutils.backend.model.token;
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Getter;
|
|
import lombok.ToString;
|
|
import xyz.mcutils.backend.model.server.JavaMinecraftServer;
|
|
import xyz.mcutils.backend.model.server.MinecraftServer;
|
|
|
|
/**
|
|
* @author Braydon
|
|
*/
|
|
@AllArgsConstructor @Getter @ToString
|
|
public final class JavaServerStatusToken {
|
|
|
|
/**
|
|
* The version of the server.
|
|
*/
|
|
private final JavaMinecraftServer.Version version;
|
|
|
|
/**
|
|
* The players on the server.
|
|
*/
|
|
private final MinecraftServer.Players players;
|
|
|
|
/**
|
|
* The mods running on this server.
|
|
*/
|
|
@SerializedName("modinfo")
|
|
private JavaMinecraftServer.ForgeModInfo modInfo;
|
|
|
|
/**
|
|
* The mods running on this server.
|
|
* <p>
|
|
* This is only used for servers
|
|
* running 1.13 and above.
|
|
* </p>
|
|
*/
|
|
private JavaMinecraftServer.ForgeData forgeData;
|
|
|
|
/**
|
|
* The motd of the server.
|
|
*/
|
|
private final Object description;
|
|
|
|
/**
|
|
* The favicon of the server.
|
|
*/
|
|
private final String favicon;
|
|
|
|
/**
|
|
* Whether the server prevents chat reports.
|
|
*/
|
|
private boolean preventsChatReports;
|
|
|
|
/**
|
|
* Whether the server enforces secure chat.
|
|
*/
|
|
private boolean enforcesSecureChat;
|
|
|
|
/**
|
|
* Whether the server has previews chat enabled.
|
|
* <p>
|
|
* Chat Preview sends chat messages to the server as they are typed, even before they're sent.
|
|
* <a href="https://www.minecraft.net/es-mx/article/minecraft-snapshot-22w19a">More information</a>
|
|
* </p>
|
|
*/
|
|
private boolean previewsChat;
|
|
}
|