Package net.minecraft.server
Class ServerMetadata
java.lang.Object
net.minecraft.server.ServerMetadata
public class ServerMetadata extends Object
Represents metadata sent to the client. This describes the server's message of the day, online players and the protocol version.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerMetadata.Deserializer
static class
ServerMetadata.Players
static class
ServerMetadata.Version
-
Field Summary
Fields Modifier and Type Field Description private Text
description
private String
favicon
private ServerMetadata.Players
players
private ServerMetadata.Version
version
-
Constructor Summary
Constructors Constructor Description ServerMetadata()
-
Method Summary
Modifier and Type Method Description Text
getDescription()
String
getFavicon()
ServerMetadata.Players
getPlayers()
ServerMetadata.Version
getVersion()
void
setDescription(Text description)
void
setFavicon(String favicon)
void
setPlayers(ServerMetadata.Players players)
void
setVersion(ServerMetadata.Version version)
-
Field Details
-
description
-
players
-
version
-
favicon
-
-
Constructor Details
-
ServerMetadata
public ServerMetadata()
-
-
Method Details
-
getDescription
-
setDescription
-
getPlayers
-
setPlayers
-
getVersion
-
setVersion
-
setFavicon
-
getFavicon
-