Class SubAPI

java.lang.Object
net.ME1312.SubServers.Client.Common.ClientAPI
net.ME1312.SubServers.Client.Sponge.SubAPI

public final class SubAPI extends ClientAPI
SubAPI Class
  • Method Details

    • getInstance

      public static SubAPI getInstance()
      Gets the SubAPI Methods
      Returns:
      SubAPI
    • getInternals

      @Deprecated public SubPlugin getInternals()
      Deprecated.
      Use SubAPI Methods when available
      Gets the SubServers Internals
      Returns:
      SubPlugin Internals
    • addListener

      public void addListener(Runnable reload)
      Adds a SubAPI Reload Listener
      Parameters:
      reload - An Event that will be called after SubAPI is soft-reloaded
    • getName

      public String getName()
      Get the Server Name
      Specified by:
      getName in class ClientAPI
      Returns:
      Server Name
    • getSubDataNetwork

      public DataClient[] getSubDataNetwork()
      Gets the SubData Network Connections
      Specified by:
      getSubDataNetwork in class ClientAPI
      Returns:
      SubData Network Connections
    • getSubDataProtocol

      public DataProtocol getSubDataProtocol()
      Gets the SubData Network Protocol
      Specified by:
      getSubDataProtocol in class ClientAPI
      Returns:
      SubData Network Protocol
    • getLangChannels

      public Collection<String> getLangChannels()
      Gets the current SubServers Lang Channels
      Specified by:
      getLangChannels in class ClientAPI
      Returns:
      SubServers Lang Channel list
    • getLang

      public Map<String,String> getLang(String channel)
      Gets values from the SubServers Lang
      Specified by:
      getLang in class ClientAPI
      Parameters:
      channel - Lang Channel
      Returns:
      Lang Value
    • getAccessMode

      public AccessMode getAccessMode()
      Get the plugin's access mode
      Returns:
      Access Mode
    • setAccessMode

      public void setAccessMode(AccessMode mode)
      Set the plugin's access mode
      Parameters:
      mode - Access Mode
    • getGraphicHandler

      public UIHandler getGraphicHandler()
      Gets the Graphics Handler
      Returns:
      Graphics Handler
    • setGraphicHandler

      public void setGraphicHandler(UIHandler graphics)
      Sets the Graphics Handler for SubServers to use
      Parameters:
      graphics - Graphics Handler
    • getPluginVersion

      public Version getPluginVersion()
      Gets the SubServers Version
      Returns:
      SubServers Version
    • getPluginBuild

      public Version getPluginBuild()
      Gets the SubServers Build Version
      Returns:
      SubServers Build Version (or null if unsigned)
    • getServerVersion

      public Version getServerVersion()
      Gets the Server Version
      Returns:
      Server Version
    • getGameVersion

      public Version getGameVersion()
      Gets the Minecraft Version
      Returns:
      Minecraft Version