Class SubAPI
java.lang.Object
net.ME1312.SubServers.Client.Common.ClientAPI
net.ME1312.SubServers.Client.Sponge.SubAPI
SubAPI Class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(Runnable reload) Adds a SubAPI Reload ListenerGet the plugin's access modeGets the Minecraft VersionGets the Graphics Handlerstatic SubAPI
Gets the SubAPI MethodsDeprecated.Use SubAPI Methods when availableGets values from the SubServers LangGets the current SubServers Lang ChannelsgetName()
Get the Server NameGets the SubServers Build VersionGets the SubServers VersionGets the Server VersionGets the SubData Network ConnectionsGets the SubData Network Protocolvoid
setAccessMode
(AccessMode mode) Set the plugin's access modevoid
setGraphicHandler
(UIHandler graphics) Sets the Graphics Handler for SubServers to useMethods inherited from class net.ME1312.SubServers.Client.Common.ClientAPI
addServer, addServer, addServer, addServer, forceRemoveServer, forceRemoveServer, forceRemoveServer, forceRemoveServer, getGroup, getGroups, getHost, getHosts, getLang, getLowercaseGroups, getMasterProxy, getProxies, getProxy, getRemotePlayer, getRemotePlayer, getRemotePlayers, getServer, getServers, getSubServer, getSubServers, removeServer, removeServer, removeServer, removeServer
-
Method Details
-
getInstance
Gets the SubAPI Methods- Returns:
- SubAPI
-
getInternals
Deprecated.Use SubAPI Methods when availableGets the SubServers Internals- Returns:
- SubPlugin Internals
-
addListener
Adds a SubAPI Reload Listener- Parameters:
reload
- An Event that will be called after SubAPI is soft-reloaded
-
getName
Get the Server Name -
getSubDataNetwork
Gets the SubData Network Connections- Specified by:
getSubDataNetwork
in classClientAPI
- Returns:
- SubData Network Connections
-
getSubDataProtocol
Gets the SubData Network Protocol- Specified by:
getSubDataProtocol
in classClientAPI
- Returns:
- SubData Network Protocol
-
getLangChannels
Gets the current SubServers Lang Channels- Specified by:
getLangChannels
in classClientAPI
- Returns:
- SubServers Lang Channel list
-
getLang
Gets values from the SubServers Lang -
getAccessMode
Get the plugin's access mode- Returns:
- Access Mode
-
setAccessMode
Set the plugin's access mode- Parameters:
mode
- Access Mode
-
getGraphicHandler
Gets the Graphics Handler- Returns:
- Graphics Handler
-
setGraphicHandler
Sets the Graphics Handler for SubServers to use- Parameters:
graphics
- Graphics Handler
-
getPluginVersion
Gets the SubServers Version- Returns:
- SubServers Version
-
getPluginBuild
Gets the SubServers Build Version- Returns:
- SubServers Build Version (or null if unsigned)
-
getServerVersion
Gets the Server Version- Returns:
- Server Version
-
getGameVersion
Gets the Minecraft Version- Returns:
- Minecraft Version
-