Class ServerStatusResponse


  • public class ServerStatusResponse
    extends java.lang.Object
    • Constructor Detail

      • ServerStatusResponse

        public ServerStatusResponse()
    • Method Detail

      • setForgeData

        public void setForgeData​(FMLStatusPing data)
      • setDescription

        public void setDescription​(ITextComponent p_151315_1_)
      • setFavicon

        public void setFavicon​(java.lang.String p_151320_1_)
      • getFavicon

        public java.lang.String getFavicon()
      • getJson

        public java.lang.String 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.