Java server status token
This commit is contained in:
parent
d14cd8d0b4
commit
b9125a2016
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user