Package-level declarations

Types

Link copied to clipboard
data class BedrockServerStatus(val description: Description, val players: Players, val version: Version, val ping: Long, val levelName: String, val gameMode: GameMode, val serverUniqueID: String) : ServerStatus

Represents the status of a Minecraft Bedrock server.

Link copied to clipboard
class ColorTypeAdapter : JsonDeserializer<Color> , JsonSerializer<Color>

Deserializer used for adapt different color types.

Link copied to clipboard
data class Description(val text: String, val obj: MOTDTextComponent)

Server description structure, typically the MOTD text.

Link copied to clipboard
class DescriptionDeserializer : JsonDeserializer<Description>

Deserializer used for adapt different Description formats sent by server.

Link copied to clipboard
Link copied to clipboard
data class JavaServerStatus(val description: Description, val players: Players, val version: Version, val ping: Long, val enforcesSecureChat: Boolean = false, val favicon: String?) : ServerStatus

Represents the status of a Java Edition Minecraft server.

Link copied to clipboard
data class MOTDTextComponent(val text: String, val color: Color? = Color.Named.WHITE, val bold: Boolean = false, val italic: Boolean = false, val underlined: Boolean = false, val strikethrough: Boolean = false, val obfuscated: Boolean = false, val extra: List<MOTDTextComponent>? = emptyList())

Represents a component of the MOTD.

Link copied to clipboard

Someone just didn't follow the rules sending the MOTD text. Fuck them.

Link copied to clipboard
data class Players(val max: Int, val online: Int, val sample: List<Sample>)

Players in server information.

Link copied to clipboard
data class Sample(val id: String, val name: String)

Sample player information representing some online players.

Link copied to clipboard
sealed class ServerStatus

Represents the status of a server.

Link copied to clipboard
data class Version(val name: String, val protocol: Int)

Server version information.