Files
Backend/src/main/java/xyz/mcutils/backend/model/token/JavaServerStatusToken.java

70 lines
1.6 KiB
Java
Raw Normal View History

2024-04-10 14:32:19 +01:00
package cc.fascinated.model.token;
2024-04-10 07:43:38 +01:00
2024-04-10 09:19:02 +01:00
import cc.fascinated.model.server.JavaMinecraftServer;
2024-04-10 11:55:58 +01:00
import cc.fascinated.model.server.MinecraftServer;
import com.google.gson.annotations.SerializedName;
2024-04-10 07:43:38 +01:00
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
/**
* @author Braydon
*/
@AllArgsConstructor @Getter @ToString
public final class JavaServerStatusToken {
2024-04-10 09:19:02 +01:00
/**
* The version of the server.
*/
private final JavaMinecraftServer.Version version;
/**
* The players on the server.
*/
2024-04-10 11:55:58 +01:00
private final MinecraftServer.Players players;
2024-04-10 09:19:02 +01:00
/**
* 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;
2024-04-10 09:19:02 +01:00
/**
* The motd of the server.
*/
private final Object description;
2024-04-10 09:19:02 +01:00
/**
* 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;
2024-04-10 09:19:02 +01:00
}