Class UIRenderer
java.lang.Object
net.ME1312.SubServers.Client.Bukkit.Graphic.UIRenderer
- Direct Known Subclasses:
DefaultUIRenderer
GUI Renderer Layout Class
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSubCreator Options Classstatic classOptions Layout Class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddHostPlugin(String handle, PluginRenderer<Host> renderer) Add Host Pluginstatic voidaddServerPlugin(String handle, PluginRenderer<Server> renderer) Add Server Pluginabstract voidback()Reopens the previous windowbooleanSee if Title Messages are available for useabstract voidClears the Window Historystatic Map<String,PluginRenderer<Host>> Get Host Pluginsstatic Map<String,PluginRenderer<Server>> Get Server Pluginsabstract voidgroupMenu(int page) Opens the Group Menuabstract booleanIf there is any Window Historyabstract voidOpens Host/<name>abstract voidhostCreator(UIRenderer.CreatorOptions options) Opens Host/<name>/Createabstract voidhostMenu(int page) Opens the Host Menuabstract voidhostPlugin(int page, String host) Opens Host/<name>/Pluginsabstract voidnewUI()Opens a new windowParse an ItemStack from a StringParse an ItemStack from a Stringstatic voidremoveHostPlugin(String handle) Remove Host Pluginstatic voidremoveServerPlugin(String handle) Remove Server Pluginabstract voidreopen()Reopens the current windowbooleanAttempt to send a Title MessagebooleanAttempt to send a Title MessagebooleanAttempt to send a Title MessagebooleanAttempt to send a Title Messageabstract voidserverAdmin(String server) Opens Server/<name>abstract voidserverMenu(int page, String host, String group) Opens the SubServer Menuabstract voidserverPlugin(int page, String server) Opens Server/<name>/PluginsvoidsetDownloading(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
-