Class ProviderRuntimeObservations
java.lang.Object
org.cloudburstmc.netty.signalling.provider.ProviderRuntimeObservations
Host observations are independent of the publicly advertised server-list status.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProviderClient.Healthstatic ProviderClient.Healthstatic StringregistrationMessage(com.google.gson.JsonObject registration)
-
Method Details
-
health
public static ProviderClient.Health health(int connectedPlayers, int capacity, long sampledAt, String build) -
health
public static ProviderClient.Health health(int connectedPlayers, int capacity, long sampledAt, String build, boolean acceptingPlayers) - Parameters:
acceptingPlayers- Whether the host wants more players, which a full or draining host answers no to while still being healthy
-
registrationMessage
-