From b9125a201699f818cd1e4980f3fcbda63fa33bd2 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Sat, 6 Apr 2024 19:18:27 -0400 Subject: [PATCH] Java server status token --- .../mc/model/token/JavaServerStatusToken.java | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/main/java/me/braydon/mc/model/token/JavaServerStatusToken.java diff --git a/src/main/java/me/braydon/mc/model/token/JavaServerStatusToken.java b/src/main/java/me/braydon/mc/model/token/JavaServerStatusToken.java new file mode 100644 index 0000000..cc784a1 --- /dev/null +++ b/src/main/java/me/braydon/mc/model/token/JavaServerStatusToken.java @@ -0,0 +1,37 @@ +package me.braydon.mc.model.token; + +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NonNull; +import lombok.ToString; +import me.braydon.mc.model.MinecraftServer; +import me.braydon.mc.model.server.JavaMinecraftServer; + +/** + * A token representing the response from + * pinging a {@link JavaMinecraftServer}. + * + * @author Braydon + */ +@AllArgsConstructor @Getter @ToString +public final class JavaServerStatusToken { + /** + * The description (MOTD) of this server. + */ + @NonNull private final String description; + + /** + * The base64 encoded favicon of this server. + */ + @NonNull private final String favicon; + + /** + * The version information of this server. + */ + @NonNull private final MinecraftServer.Version version; + + /** + * The player counts of this server. + */ + @NonNull private final MinecraftServer.Players players; +} \ No newline at end of file