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 classServerMetadata.Deserializerstatic classServerMetadata.Playersstatic classServerMetadata.Version -
Field Summary
Fields Modifier and Type Field Description private Textdescriptionprivate Stringfaviconprivate ServerMetadata.Playersplayersprivate ServerMetadata.Versionversion -
Constructor Summary
Constructors Constructor Description ServerMetadata() -
Method Summary
Modifier and Type Method Description TextgetDescription()StringgetFavicon()ServerMetadata.PlayersgetPlayers()ServerMetadata.VersiongetVersion()voidsetDescription(Text description)voidsetFavicon(String favicon)voidsetPlayers(ServerMetadata.Players players)voidsetVersion(ServerMetadata.Version version)
-
Field Details
-
description
-
players
-
version
-
favicon
-
-
Constructor Details
-
ServerMetadata
public ServerMetadata()
-
-
Method Details
-
getDescription
-
setDescription
-
getPlayers
-
setPlayers
-
getVersion
-
setVersion
-
setFavicon
-
getFavicon
-