Class UIRenderer
java.lang.Object
net.ME1312.SubServers.Client.Bukkit.Graphic.UIRenderer
- Direct Known Subclasses:
DefaultUIRenderer
GUI Renderer Layout Class
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
SubCreator Options Classstatic class
Options Layout Class -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addHostPlugin
(String handle, PluginRenderer<Host> renderer) Add Host Pluginstatic void
addServerPlugin
(String handle, PluginRenderer<Server> renderer) Add Server Pluginabstract void
back()
Reopens the previous windowboolean
See if Title Messages are available for useabstract void
Clears the Window Historystatic Map<String,
PluginRenderer<Host>> Get Host Pluginsstatic Map<String,
PluginRenderer<Server>> Get Server Pluginsabstract void
groupMenu
(int page) Opens the Group Menuabstract boolean
If there is any Window Historyabstract void
Opens Host/<name>abstract void
hostCreator
(UIRenderer.CreatorOptions options) Opens Host/<name>/Createabstract void
hostMenu
(int page) Opens the Host Menuabstract void
hostPlugin
(int page, String host) Opens Host/<name>/Pluginsabstract void
newUI()
Opens a new windowParse an ItemStack from a StringParse an ItemStack from a Stringstatic void
removeHostPlugin
(String handle) Remove Host Pluginstatic void
removeServerPlugin
(String handle) Remove Server Pluginabstract void
reopen()
Reopens the current windowboolean
Attempt to send a Title Messageboolean
Attempt to send a Title Messageboolean
Attempt to send a Title Messageboolean
Attempt to send a Title Messageabstract void
serverAdmin
(String server) Opens Server/<name>abstract void
serverMenu
(int page, String host, String group) Opens the SubServer Menuabstract void
serverPlugin
(int page, String server) Opens Server/<name>/Pluginsvoid
setDownloading
(String subtitle) Shows/Hides the Downloading Title Message
-
Constructor Details
-
UIRenderer
Creates a new UIRenderer- Parameters:
plugin
- SubPluginplayer
- Player
-
-
Method Details
-
newUI
public abstract void newUI()Opens a new window -
clearHistory
public abstract void clearHistory()Clears the Window History -
hasHistory
public abstract boolean hasHistory()If there is any Window History- Returns:
- Window History Status
-
reopen
public abstract void reopen()Reopens the current window -
back
public abstract void back()Reopens the previous window -
sendTitle
Attempt to send a Title Message- Parameters:
str
- Message- Returns:
- Success Status
-
sendTitle
Attempt to send a Title Message- Parameters:
str
- Messagestay
- How long the message should stay- Returns:
- Success Status
-
sendTitle
Attempt to send a Title Message- Parameters:
str
- Messagefadein
- FadeIn Transition length (in ticks)stay
- How long the message should stay (in ticks)fadeout
- FadeOut Transition length (in ticks)- Returns:
- Success Status
-
sendTitle
Attempt to send a Title Message- Parameters:
line1
- Messageline2
- Messagefadein
- FadeIn Transition length (in ticks)stay
- How long the message should stay (in ticks)fadeout
- FadeOut Transition length (in ticks)- Returns:
- Success Status
-
canSendTitle
public boolean canSendTitle()See if Title Messages are available for use- Returns:
- Title Message Availability
-
setDownloading
Shows/Hides the Downloading Title Message- Parameters:
subtitle
- Subtitle to display (or null to hide)
-
parseItem
Parse an ItemStack from a String- Parameters:
str
- String to parse- Returns:
- ItemStack
-
parseItem
Parse an ItemStack from a String- Parameters:
str
- String to parsedef
- Default to return if unable to parse- Returns:
- ItemStack
-
addHostPlugin
Add Host Plugin- Parameters:
handle
- Handle to bindrenderer
- Renderer
-
getHostPlugins
Get Host Plugins- Returns:
- Host Plugins
-
removeHostPlugin
Remove Host Plugin- Parameters:
handle
- Handle
-
addServerPlugin
Add Server Plugin- Parameters:
handle
- Handle to bindrenderer
- Renderer
-
getServerPlugins
Get Server Plugins- Returns:
- SubServer Plugins
-
removeServerPlugin
Remove Server Plugin- Parameters:
handle
- Handle
-
hostMenu
public abstract void hostMenu(int page) Opens the Host Menu- Parameters:
page
- Page Number (starting from page 1)
-
hostAdmin
Opens Host/<name>- Parameters:
host
- Host Name
-
hostCreator
Opens Host/<name>/Create- Parameters:
options
- Creator Options
-
hostPlugin
Opens Host/<name>/Plugins- Parameters:
host
- Host Name
-
groupMenu
public abstract void groupMenu(int page) Opens the Group Menu- Parameters:
page
- Page Number (starting from page 1)
-
serverMenu
Opens the SubServer Menu- Parameters:
page
- Page Number (starting from page 1)host
- Host Name (or null to scan all hosts)
-
serverAdmin
Opens Server/<name>- Parameters:
server
- SubServer Name
-
serverPlugin
Opens Server/<name>/Plugins- Parameters:
server
- SubServer Name
-