Package de.dytanic.cloudnet.ext.bridge
Class ServiceInfoSnapshotUtil
- java.lang.Object
-
- de.dytanic.cloudnet.ext.bridge.ServiceInfoSnapshotUtil
-
public final class ServiceInfoSnapshotUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.StringgetExtra(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.EXTRA.static intgetGroupOnlineCount(java.lang.String groupName)static intgetMaxPlayers(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.MAX_PLAYERS.static java.lang.StringgetMotd(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.MOTD.static intgetOnlineCount(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.ONLINE_COUNT.static java.util.Collection<de.dytanic.cloudnet.common.document.gson.JsonDocument>getPlayers(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.PLAYERS.static java.util.Collection<PluginInfo>getPlugins(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.PLUGINS.static java.lang.StringgetState(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.STATE.static intgetTaskOnlineCount(java.lang.String taskName)static java.lang.StringgetVersion(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.VERSION.static booleanisEmptyService(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.IS_EMPTY.static booleanisFullService(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.IS_FULL.static booleanisIngameService(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.IS_IN_GAME.static booleanisOnline(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.IS_ONLINE.static booleanisStartingService(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.IS_STARTING.
-
-
-
Method Detail
-
getTaskOnlineCount
public static int getTaskOnlineCount(java.lang.String taskName)
-
getGroupOnlineCount
public static int getGroupOnlineCount(java.lang.String groupName)
-
getVersion
@Deprecated public static java.lang.String getVersion(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.VERSION.
-
getOnlineCount
@Deprecated public static int getOnlineCount(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.ONLINE_COUNT.
-
getMaxPlayers
@Deprecated public static int getMaxPlayers(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.MAX_PLAYERS.
-
isOnline
@Deprecated public static boolean isOnline(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.IS_ONLINE.
-
isEmptyService
@Deprecated public static boolean isEmptyService(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.IS_EMPTY.
-
isFullService
@Deprecated public static boolean isFullService(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.IS_FULL.
-
isStartingService
@Deprecated public static boolean isStartingService(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.IS_STARTING.
-
isIngameService
@Deprecated public static boolean isIngameService(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.IS_IN_GAME.
-
getMotd
@Deprecated public static java.lang.String getMotd(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.MOTD.
-
getState
@Deprecated public static java.lang.String getState(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.STATE.
-
getExtra
@Deprecated public static java.lang.String getExtra(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.EXTRA.
-
getPlugins
@Deprecated public static java.util.Collection<PluginInfo> getPlugins(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.PLUGINS.
-
getPlayers
@Deprecated public static java.util.Collection<de.dytanic.cloudnet.common.document.gson.JsonDocument> getPlayers(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
Deprecated.UseServiceInfoSnapshot.getProperty(ServiceProperty)withBridgeServiceProperty.PLAYERS.
-
-