Package-level declarations

Types

Link copied to clipboard
data class BedrockServerStatus(val description: TextComponent, 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
Link copied to clipboard
data class JavaServerStatus(val description: TextComponent, 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
@JsonClass(generateAdapter = true)
data class Players(val max: Int, val online: Int, val sample: List<Sample>? = emptyList())

Players in server information.

Link copied to clipboard
@JsonClass(generateAdapter = true)
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 TextComponent(val text: String, val color: String = "", val styles: EnumSet<TextStyle> = EnumSet.noneOf(TextStyle::class.java), val extra: List<TextComponent> = emptyList())

Represents a component of the MOTD.

Link copied to clipboard

Proper styles for the TextComponent.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class Version(val name: String, val protocol: Long)

Server version information.