|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bukkit.plugin.java.JavaPlugin
me.escapeNT.pail.Pail
public final class Pail
Independent, comprehensive, and extensible GUI for Bukkit.
Nested Class Summary | |
---|---|
class |
Pail.InitMain
|
Field Summary | |
---|---|
static ServerReadyListener |
handler
|
Image |
PAIL_ICON
|
static String |
PLUGIN_NAME
|
static String |
PLUGIN_THREAD
|
static String |
PLUGIN_VERSION
|
me.escapeNT.pail.Pail.WindowCloseListener |
windowListener
|
Constructor Summary | |
---|---|
Pail()
|
Method Summary | |
---|---|
void |
addWaypoint(Waypoint waypoint)
Add the provided Waypoint to the list. |
ImageIcon |
getIcon(org.bukkit.Material material)
Gets the 25x25 pixel image icon for the provided Material. |
JPanel |
getInterfaceComponent(String title)
Gets the interface component by the specified title, or null if it isn't loaded. |
Language |
getLanguage()
Gets the currently selected language. |
MainWindow |
getMainWindow()
Returns the main window of this instance. |
Waypoint |
getWaypoint(String name)
Gets the waypoint with the specified name, or null if it doesn't exist. |
void |
loadInterfaceComponent(String title,
JPanel panel)
Loads the provided JPanel into the user interface under the given title. |
protected void |
loadState()
Attempts to load a previous state from file (if it exists). |
boolean |
onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command cmd,
String commandLabel,
String[] args)
|
void |
onDisable()
|
void |
onEnable()
|
boolean |
removeWaypoint(String name)
Removes the waypoint with the given name from the list. |
void |
saveState()
Saves the current plugin state to file. |
void |
setActivated(String title,
boolean activated)
Sets the activated (visible) status of the specified tab. |
String |
translate(String text)
Translates the given text to the currently selected language. |
Methods inherited from class org.bukkit.plugin.java.JavaPlugin |
---|
getClassLoader, getCommand, getConfiguration, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getPluginLoader, getServer, initialize, installDDL, isEnabled, isInitialized, isNaggable, onLoad, removeDDL, setEnabled, setNaggable, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final Image PAIL_ICON
public static String PLUGIN_NAME
public static String PLUGIN_THREAD
public static String PLUGIN_VERSION
public static final ServerReadyListener handler
public final me.escapeNT.pail.Pail.WindowCloseListener windowListener
Constructor Detail |
---|
public Pail()
Method Detail |
---|
public void onEnable()
public void onDisable()
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String commandLabel, String[] args)
onCommand
in interface org.bukkit.command.CommandExecutor
onCommand
in class org.bukkit.plugin.java.JavaPlugin
public void saveState()
protected void loadState()
public MainWindow getMainWindow()
public void loadInterfaceComponent(String title, JPanel panel)
panel
- The JPanel to load.title
- The title of this panel.
NullPointerException
- if the specified JPanel is null.
IllegalArgumentException
- if the title is already taken.public JPanel getInterfaceComponent(String title)
title
- The title of the component.
public void setActivated(String title, boolean activated)
title
- The title of the panel.activated
- True if the tab will be visible.public Waypoint getWaypoint(String name)
name
- The name of the waypoint.
public void addWaypoint(Waypoint waypoint)
waypoint
- The Waypoint to add.public boolean removeWaypoint(String name)
name
- The name of the Waypoint to remove.
public Language getLanguage()
public String translate(String text)
text
- The text to translate.
public ImageIcon getIcon(org.bukkit.Material material)
material
- The material to get the icon for.
IllegalArgumentException
- if the Material is AIR.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |