| Constructor | Description |
|---|---|
CoreGameClass(java.lang.String name,
org.bukkit.ChatColor color) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addEffect(org.bukkit.potion.PotionEffect effect) |
Adds a potion effect to the class.
|
void |
addItem(org.bukkit.inventory.ItemStack item) |
Adds an item to the set of items for the class.
|
org.bukkit.inventory.ItemStack[] |
getArmor() |
Gets the set of armor items given to players for the class, if applicable.
|
org.bukkit.ChatColor |
getColor() |
Gets the color of the class represented by the GameClass object.
|
java.util.List<org.bukkit.potion.PotionEffect> |
getEffects() |
Gets all potion effects belonging to the class.
|
org.bukkit.inventory.ItemStack |
getGUIItem() |
Returns the item which is used to represent the class in the class selection GUI if the entity has access to the class.
|
org.bukkit.inventory.ItemStack[] |
getItems() |
Gets the items given to players for the class, if applicable.
|
org.bukkit.inventory.ItemStack |
getLockedItem() |
Returns the item which is used to represent the class in the class selection GUI if the entity does not have access to the class.
|
java.lang.String |
getName() |
Gets the name of the class represented by the GameClass object.
|
java.lang.String |
getPermission() |
Gets the permission required for access to the class in-game.
|
void |
setBoots(org.bukkit.inventory.ItemStack boots) |
Sets the boots for the class.
|
void |
setChestplate(org.bukkit.inventory.ItemStack chestplate) |
Sets the chestplate for the class.
|
void |
setGUIItem(org.bukkit.inventory.ItemStack item) |
Sets the GUI item for the class.
|
void |
setHelmet(org.bukkit.inventory.ItemStack helmet) |
Sets the helmet for the class.
|
void |
setLeggings(org.bukkit.inventory.ItemStack leggings) |
Sets the leggings for the class.
|
public CoreGameClass(java.lang.String name,
org.bukkit.ChatColor color)
public java.lang.String getName()
GameClasspublic org.bukkit.ChatColor getColor()
GameClasspublic java.lang.String getPermission()
GameClassgetPermission in interface GameClasspublic org.bukkit.inventory.ItemStack getGUIItem()
GameClassgetGUIItem in interface GameClasspublic org.bukkit.inventory.ItemStack getLockedItem()
GameClassgetLockedItem in interface GameClasspublic void setGUIItem(org.bukkit.inventory.ItemStack item)
GameClasssetGUIItem in interface GameClassitem - the item to be used in the class selection GUIpublic org.bukkit.inventory.ItemStack[] getItems()
GameClasspublic void addItem(org.bukkit.inventory.ItemStack item)
GameClasspublic void setHelmet(org.bukkit.inventory.ItemStack helmet)
GameClasspublic void setChestplate(org.bukkit.inventory.ItemStack chestplate)
GameClasssetChestplate in interface GameClasschestplate - the chestplate itempublic void setLeggings(org.bukkit.inventory.ItemStack leggings)
GameClasssetLeggings in interface GameClassleggings - the leggings itempublic void setBoots(org.bukkit.inventory.ItemStack boots)
GameClasspublic org.bukkit.inventory.ItemStack[] getArmor()
GameClasspublic java.util.List<org.bukkit.potion.PotionEffect> getEffects()
GameClassgetEffects in interface GameClass