Package net.minecraft.network
Class ServerStatusResponse
java.lang.Object
net.minecraft.network.ServerStatusResponse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ITextComponentprivate Stringprivate FMLStatusPingprivate Stringprivate Semaphoreprivate ServerStatusResponse.Playersprivate ServerStatusResponse.Version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetJson()Returns this object as a Json string.voidInvalidates the cached json, causing the next call to getJson to rebuild it.voidsetDescription(ITextComponent p_151315_1_) voidsetFavicon(String p_151320_1_) voidsetForgeData(FMLStatusPing data) voidsetPlayers(ServerStatusResponse.Players p_151319_1_) voidsetVersion(ServerStatusResponse.Version p_151321_1_)
-
Field Details
-
description
-
players
-
version
-
favicon
-
forgeData
-
mutex
-
json
-
-
Constructor Details
-
ServerStatusResponse
public ServerStatusResponse()
-
-
Method Details
-
getForgeData
-
setForgeData
-
getDescription
-
setDescription
-
getPlayers
-
setPlayers
-
getVersion
-
setVersion
-
setFavicon
-
getFavicon
-
getJson
Returns this object as a Json string. Converting to JSON if a cached version is not available. Also to prevent potentially large memory allocations on the server this is moved from the SPacketServerInfo writePacket function As this method is called from the network threads so thread safety is important! -
invalidateJson
public void invalidateJson()Invalidates the cached json, causing the next call to getJson to rebuild it. This is needed externally because PlayerCountData.setPlayer's is public.
-