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()
GameClass
public org.bukkit.ChatColor getColor()
GameClass
public java.lang.String getPermission()
GameClass
getPermission
in interface GameClass
public org.bukkit.inventory.ItemStack getGUIItem()
GameClass
getGUIItem
in interface GameClass
public org.bukkit.inventory.ItemStack getLockedItem()
GameClass
getLockedItem
in interface GameClass
public void setGUIItem(org.bukkit.inventory.ItemStack item)
GameClass
setGUIItem
in interface GameClass
item
- the item to be used in the class selection GUIpublic org.bukkit.inventory.ItemStack[] getItems()
GameClass
public void addItem(org.bukkit.inventory.ItemStack item)
GameClass
public void setHelmet(org.bukkit.inventory.ItemStack helmet)
GameClass
public void setChestplate(org.bukkit.inventory.ItemStack chestplate)
GameClass
setChestplate
in interface GameClass
chestplate
- the chestplate itempublic void setLeggings(org.bukkit.inventory.ItemStack leggings)
GameClass
setLeggings
in interface GameClass
leggings
- the leggings itempublic void setBoots(org.bukkit.inventory.ItemStack boots)
GameClass
public org.bukkit.inventory.ItemStack[] getArmor()
GameClass
public java.util.List<org.bukkit.potion.PotionEffect> getEffects()
GameClass
getEffects
in interface GameClass