ClassEditor
public 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()
ClassEditor
open
in interface ClassEditor
public void close()
ClassEditor
close
in interface ClassEditor
public void setColor(org.bukkit.inventory.ItemStack wool)
ClassEditor
setColor
in interface ClassEditor
wool
- the wool object corresponding to the desired ChatColorpublic void addEffect(java.lang.String potionType)
ClassEditor
addEffect
in interface ClassEditor
potionType
- the internal name of the potion effect to addpublic void removeEffect(java.lang.String potionType)
ClassEditor
removeEffect
in interface ClassEditor
potionType
- the internal name of the potion effect to removepublic GamePlayer getPlayer()
ClassEditor
getPlayer
in interface ClassEditor
public org.bukkit.inventory.Inventory getInventory()
ClassEditor
getInventory
in interface ClassEditor
public org.bukkit.inventory.Inventory getColorMenu()
ClassEditor
getColorMenu
in interface ClassEditor
public org.bukkit.inventory.Inventory getCurrentEffectMenu()
ClassEditor
getCurrentEffectMenu
in interface ClassEditor
public org.bukkit.inventory.Inventory getAddEffectMenu()
ClassEditor
getAddEffectMenu
in interface ClassEditor