public final class SubAPI
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addListener(java.lang.Runnable reload)
Adds a SubAPI Reload Listener
|
Version |
getGameVersion()
Gets the Minecraft Version
|
void |
getGlobalPlayers(Callback<java.util.Collection<NamedContainer<java.lang.String,java.util.UUID>>> callback)
Get players on this network across all known proxies
|
UIHandler |
getGraphicHandler()
Gets the Graphics Handler
|
void |
getGroup(java.lang.String name,
Callback<java.util.List<Server>> callback)
Gets a Server Group (Group names are case insensitive here)
|
void |
getGroups(Callback<java.util.Map<java.lang.String,java.util.List<Server>>> callback)
Gets the Server Groups (Group names are case sensitive here)
|
void |
getHost(java.lang.String name,
Callback<Host> callback)
Gets a Host
|
void |
getHosts(Callback<java.util.Map<java.lang.String,Host>> callback)
Gets the Hosts
|
static SubAPI |
getInstance()
Gets the SubAPI Methods
|
SubPlugin |
getInternals()
Deprecated.
Use SubAPI Methods when available
|
java.util.Map<java.lang.String,java.lang.String> |
getLang(java.lang.String channel)
Gets values from the SubServers Lang
|
java.lang.String |
getLang(java.lang.String channel,
java.lang.String key)
Gets a value from the SubServers Lang
|
java.util.Collection<java.lang.String> |
getLangChannels()
Gets the current SubServers Lang Channels
|
void |
getLowercaseGroups(Callback<java.util.Map<java.lang.String,java.util.List<Server>>> callback)
Gets the Server Groups (Group names are all lowercase here)
|
Version |
getPluginVersion()
Gets the SubServers Version
|
void |
getProxies(Callback<java.util.Map<java.lang.String,Proxy>> callback)
Gets the known Proxies
|
void |
getProxy(java.lang.String name,
Callback<Proxy> callback)
Gets a Proxy
|
void |
getServer(java.lang.String name,
Callback<Server> callback)
Gets a Server
|
void |
getServers(Callback<java.util.Map<java.lang.String,Server>> callback)
Gets the Servers (including SubServers)
|
Version |
getServerVersion()
Gets the Server Version
|
SubDataClient |
getSubDataNetwork()
Gets the SubData Network Manager
|
void |
getSubServer(java.lang.String name,
Callback<SubServer> callback)
Gets a SubServer
|
void |
getSubServers(Callback<java.util.Map<java.lang.String,SubServer>> callback)
Gets the SubServers
|
void |
setGraphicHandler(UIHandler graphics)
Sets the Graphics Handler for SubServers to use
|
public static SubAPI getInstance()
@Deprecated public SubPlugin getInternals()
public void addListener(java.lang.Runnable reload)
reload
- An Event that will be called after SubAPI is soft-reloadedpublic void getHosts(Callback<java.util.Map<java.lang.String,Host>> callback)
callback
- Host Mappublic void getHost(java.lang.String name, Callback<Host> callback)
name
- Host namecallback
- a Hostpublic void getGroups(Callback<java.util.Map<java.lang.String,java.util.List<Server>>> callback)
callback
- Group Mappublic void getLowercaseGroups(Callback<java.util.Map<java.lang.String,java.util.List<Server>>> callback)
callback
- Group Mappublic void getGroup(java.lang.String name, Callback<java.util.List<Server>> callback)
name
- Group namecallback
- a Server Grouppublic void getServers(Callback<java.util.Map<java.lang.String,Server>> callback)
callback
- Server Mappublic void getServer(java.lang.String name, Callback<Server> callback)
name
- Server namecallback
- a Serverpublic void getSubServers(Callback<java.util.Map<java.lang.String,SubServer>> callback)
callback
- SubServer Mappublic void getSubServer(java.lang.String name, Callback<SubServer> callback)
name
- SubServer namecallback
- a SubServerpublic void getProxies(Callback<java.util.Map<java.lang.String,Proxy>> callback)
public void getProxy(java.lang.String name, Callback<Proxy> callback)
name
- Proxy namepublic void getGlobalPlayers(Callback<java.util.Collection<NamedContainer<java.lang.String,java.util.UUID>>> callback)
callback
- Player Collectionpublic SubDataClient getSubDataNetwork()
public java.util.Collection<java.lang.String> getLangChannels()
public java.util.Map<java.lang.String,java.lang.String> getLang(java.lang.String channel)
channel
- Lang Channelpublic java.lang.String getLang(java.lang.String channel, java.lang.String key)
channel
- Lang Channelkey
- Keypublic UIHandler getGraphicHandler()
public void setGraphicHandler(UIHandler graphics)
graphics
- Graphics Handlerpublic Version getPluginVersion()
public Version getServerVersion()
public Version getGameVersion()