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 void |
groupMenu(int page)
Opens the Group Menu
|
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
|
org.bukkit.inventory.ItemStack |
parseItem(java.lang.String str)
Parse an ItemStack from a String
|
org.bukkit.inventory.ItemStack |
parseItem(java.lang.String str,
org.bukkit.inventory.ItemStack def)
Parse an ItemStack from a String
|
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
|
abstract void |
serverMenu(int page,
java.lang.String host,
java.lang.String group)
Opens the SubServer Menu
|
void |
setDownloading(java.lang.String subtitle)
Shows/Hides the Downloading Title Message
|
abstract void |
subserverAdmin(java.lang.String server)
Opens SubServer/<name>
|
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 length (in ticks)stay
- How long the message should stay (in ticks)fadeout
- FadeOut Transition length (in ticks)public void setDownloading(java.lang.String subtitle)
subtitle
- Subtitle to display (or null to hide)public org.bukkit.inventory.ItemStack parseItem(java.lang.String str)
str
- String to parsepublic org.bukkit.inventory.ItemStack parseItem(java.lang.String str, org.bukkit.inventory.ItemStack def)
str
- String to parsedef
- Default to return if unable to parsepublic 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 groupMenu(int page)
page
- Page Number (starting from page 1)public abstract void serverMenu(int page, java.lang.String host, java.lang.String group)
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