Class 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.String getExtra​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      Deprecated.
      Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.EXTRA.
      static int getGroupOnlineCount​(java.lang.String groupName)  
      static int getMaxPlayers​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      Deprecated.
      Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.MAX_PLAYERS.
      static java.lang.String getMotd​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      Deprecated.
      Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.MOTD.
      static int getOnlineCount​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      Deprecated.
      Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.ONLINE_COUNT.
      static java.util.Collection<de.dytanic.cloudnet.common.document.gson.JsonDocument> getPlayers​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      Deprecated.
      Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.PLAYERS.
      static java.util.Collection<PluginInfo> getPlugins​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      Deprecated.
      Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.PLUGINS.
      static java.lang.String getState​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      Deprecated.
      Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.STATE.
      static int getTaskOnlineCount​(java.lang.String taskName)  
      static java.lang.String getVersion​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      Deprecated.
      Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.VERSION.
      static boolean isEmptyService​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      Deprecated.
      Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.IS_EMPTY.
      static boolean isFullService​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      Deprecated.
      Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.IS_FULL.
      static boolean isIngameService​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      Deprecated.
      Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.IS_IN_GAME.
      static boolean isOnline​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      Deprecated.
      Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.IS_ONLINE.
      static boolean isStartingService​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
      Deprecated.
      Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.IS_STARTING.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
        Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.VERSION.
      • getOnlineCount

        @Deprecated
        public static int getOnlineCount​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
        Deprecated.
        Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.ONLINE_COUNT.
      • getMaxPlayers

        @Deprecated
        public static int getMaxPlayers​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
        Deprecated.
        Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.MAX_PLAYERS.
      • isOnline

        @Deprecated
        public static boolean isOnline​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
        Deprecated.
        Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.IS_ONLINE.
      • isEmptyService

        @Deprecated
        public static boolean isEmptyService​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
        Deprecated.
        Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.IS_EMPTY.
      • isFullService

        @Deprecated
        public static boolean isFullService​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
        Deprecated.
        Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.IS_FULL.
      • isStartingService

        @Deprecated
        public static boolean isStartingService​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
        Deprecated.
        Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.IS_STARTING.
      • isIngameService

        @Deprecated
        public static boolean isIngameService​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
        Deprecated.
        Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.IS_IN_GAME.
      • getMotd

        @Deprecated
        public static java.lang.String getMotd​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
        Deprecated.
        Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.MOTD.
      • getState

        @Deprecated
        public static java.lang.String getState​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
        Deprecated.
        Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.STATE.
      • getExtra

        @Deprecated
        public static java.lang.String getExtra​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
        Deprecated.
        Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.EXTRA.
      • getPlugins

        @Deprecated
        public static java.util.Collection<PluginInfo> getPlugins​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
        Deprecated.
        Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.PLUGINS.
      • getPlayers

        @Deprecated
        public static java.util.Collection<de.dytanic.cloudnet.common.document.gson.JsonDocument> getPlayers​(de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
        Deprecated.
        Use ServiceInfoSnapshot.getProperty(ServiceProperty) with BridgeServiceProperty.PLAYERS.