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