ClassEditorpublic class CoreClassEditor extends java.lang.Object implements ClassEditor
| Constructor | Description |
|---|---|
CoreClassEditor(Game game,
GamePlayer player,
java.lang.String className) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addEffect(java.lang.String potionType) |
Adds a potion effect to the class.
|
void |
close() |
Closes the editing session.
|
org.bukkit.inventory.Inventory |
getAddEffectMenu() |
Gets the menu to add a new potion effect to the class.
|
org.bukkit.inventory.Inventory |
getColorMenu() |
Gets the menu to set the color for the class.
|
org.bukkit.inventory.Inventory |
getCurrentEffectMenu() |
Gets the menu of existing potion effects for the class.
|
org.bukkit.inventory.Inventory |
getInventory() |
Gets the primary inventory menu where items/armor may be edited and other menus may be accessed.
|
GamePlayer |
getPlayer() |
Gets the GamePlayer associated with the ClassEditor
|
void |
open() |
Opens the editing session.
|
void |
removeEffect(java.lang.String potionType) |
Removes a potion effect from the class.
|
void |
setColor(org.bukkit.inventory.ItemStack wool) |
Sets the ChatColor for the class to that associated with a wool ItemStack.
|
public CoreClassEditor(Game game, GamePlayer player, java.lang.String className)
public void open()
ClassEditoropen in interface ClassEditorpublic void close()
ClassEditorclose in interface ClassEditorpublic void setColor(org.bukkit.inventory.ItemStack wool)
ClassEditorsetColor in interface ClassEditorwool - the wool object corresponding to the desired ChatColorpublic void addEffect(java.lang.String potionType)
ClassEditoraddEffect in interface ClassEditorpotionType - the internal name of the potion effect to addpublic void removeEffect(java.lang.String potionType)
ClassEditorremoveEffect in interface ClassEditorpotionType - the internal name of the potion effect to removepublic GamePlayer getPlayer()
ClassEditorgetPlayer in interface ClassEditorpublic org.bukkit.inventory.Inventory getInventory()
ClassEditorgetInventory in interface ClassEditorpublic org.bukkit.inventory.Inventory getColorMenu()
ClassEditorgetColorMenu in interface ClassEditorpublic org.bukkit.inventory.Inventory getCurrentEffectMenu()
ClassEditorgetCurrentEffectMenu in interface ClassEditorpublic org.bukkit.inventory.Inventory getAddEffectMenu()
ClassEditorgetAddEffectMenu in interface ClassEditor