Files
Backend/src/main/java/cc.fascinated/model/mojang/JavaServerStatusToken.java

51 lines
1.1 KiB
Java
Raw Normal View History

2024-04-10 07:43:38 +01:00
package cc.fascinated.model.mojang;
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;
}