public abstract class UIRenderer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UIRenderer.CreatorOptions
SubCreator Options Class
|
static class |
UIRenderer.Options
Options Layout Class
|
Constructor and Description |
---|
UIRenderer(SubPlugin plugin,
java.util.UUID player)
Creates a new UIRenderer
|
Modifier and Type | Method and Description |
---|---|
static void |
addHostPlugin(java.lang.String handle,
Renderer renderer)
Add Host Plugin
|
static void |
addSubServerPlugin(java.lang.String handle,
Renderer renderer)
Add SubServer Plugin
|
abstract void |
back()
Reopens the previous window
|
abstract void |
clearHistory()
Clears the Window History
|
static java.util.Map<java.lang.String,Renderer> |
getHostPlugins()
Get Host Plugins
|
static java.util.Map<java.lang.String,Renderer> |
getSubServerPlugins()
Get SubServer Plugins
|
abstract boolean |
hasHistory()
If there is any Window History
|
abstract void |
hostAdmin(java.lang.String host)
Opens Host/<name>
|
abstract void |
hostCreator(UIRenderer.CreatorOptions options)
Opens Host/<name>/Create
|
abstract void |
hostMenu(int page)
Opens the Host Menu
|
abstract void |
hostPlugin(int page,
java.lang.String host)
Opens Host/<name>/Plugins
|
abstract void |
newUI()
Opens a new window
|
static void |
removeHostPlugin(java.lang.String handle)
Remove Host Plugin
|
static void |
removeSubServerPlugin(java.lang.String handle)
Remove SubServer Plugin
|
abstract void |
reopen()
Reopens the current window
|
boolean |
sendTitle(java.lang.String str)
Attempt to send a Title Message
|
boolean |
sendTitle(java.lang.String str,
int stay)
Attempt to send a Title Message
|
boolean |
sendTitle(java.lang.String str,
int fadein,
int stay,
int fadeout)
Attempt to send a Title Message
|
void |
setDownloading(java.lang.String subtitle)
Shows/Hides the Downloading Title Message
|
abstract void |
subserverAdmin(java.lang.String server)
Opens SubServer/<name>
|
abstract void |
subserverMenu(int page,
java.lang.String host)
Opens the SubServer Menu
|
abstract void |
subserverPlugin(int page,
java.lang.String server)
Opens SubServer/<name>/Plugins
|
public UIRenderer(SubPlugin plugin, java.util.UUID player)
plugin
- SubPluginplayer
- Playerpublic abstract void newUI()
public abstract void clearHistory()
public abstract boolean hasHistory()
public abstract void reopen()
public abstract void back()
public boolean sendTitle(java.lang.String str)
str
- Messagepublic boolean sendTitle(java.lang.String str, int stay)
str
- Messagestay
- How long the message should staypublic boolean sendTitle(java.lang.String str, int fadein, int stay, int fadeout)
str
- Messagefadein
- FadeIn Transition lengthstay
- How long the message should stayfadeout
- FadeOut Transition lengthpublic void setDownloading(java.lang.String subtitle)
subtitle
- Subtitle to display (or null to hide)public static void addHostPlugin(java.lang.String handle, Renderer renderer)
handle
- Handle to bindrenderer
- Rendererpublic static java.util.Map<java.lang.String,Renderer> getHostPlugins()
public static void removeHostPlugin(java.lang.String handle)
handle
- Handlepublic static void addSubServerPlugin(java.lang.String handle, Renderer renderer)
handle
- Handle to bindrenderer
- Rendererpublic static java.util.Map<java.lang.String,Renderer> getSubServerPlugins()
public static void removeSubServerPlugin(java.lang.String handle)
handle
- Handlepublic abstract void hostMenu(int page)
page
- Page Number (starting from page 1)public abstract void hostAdmin(java.lang.String host)
host
- Host Namepublic abstract void hostCreator(UIRenderer.CreatorOptions options)
options
- Creator Optionspublic abstract void hostPlugin(int page, java.lang.String host)
host
- Host Namepublic abstract void subserverMenu(int page, java.lang.String host)
page
- Page Number (starting from page 1)host
- Host Name (or null to scan all hosts)public abstract void subserverAdmin(java.lang.String server)
server
- SubServer Namepublic abstract void subserverPlugin(int page, java.lang.String server)
server
- SubServer Name