CoreClassManager
public interface ClassManager
Game.getClassManager()
Modifier and Type | Method | Description |
---|---|---|
boolean |
deleteClass(java.lang.String name) |
Deletes a class from memory and storage with the specified name.
|
GameClass |
getClass(java.lang.String name) |
Returns the GameClass object with a specific name.
|
org.bukkit.inventory.ItemStack |
getClassSelector() |
Gets the class selector item, which may be clicked to open the class selection menu.
|
GameClass |
getRandomClass(GamePlayer player) |
Scans classes in a random order for one the player has permission for.
|
void |
loadClasses() |
Loads classes from the classes.yml file, which is contained in the resources folder of the game.
|
void |
openGUI(GamePlayer player) |
Opens the class selection GUI for a specific entity.
|
void loadClasses()
void openGUI(GamePlayer player)
player
- the GamePlayer object of the entity to open the GUI forGameClass getClass(java.lang.String name)
name
- the name of the desired classboolean deleteClass(java.lang.String name)
name
- the name of the class to deleteGameClass getRandomClass(GamePlayer player)
player
- the player to find a class fororg.bukkit.inventory.ItemStack getClassSelector()