Package studio.magemonkey.fusion.api
Class ProfessionManager
java.lang.Object
studio.magemonkey.fusion.api.ProfessionManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseProfessionGui(String professionName) Close the professions gui for all players This will close all guis contained in the profession registry and for every player In case you want to close a gui for a specific player, you can just use Player#closeInventory()getProfession(String profession) Get a profession by name The profession instances are mainly know as CraftinTable objects that contains recipes and other datagetProfessionGui(String profession) Get a profession registry gui by name The profession gui instances are mainly know as ProfessionGuiRegistry objects that contains the gui dataopenProfessionGui(String profession, org.bukkit.entity.Player player) Open a professions gui for a player and get a professions registry object This object handles all players guis individually by caching them in a map.
-
Constructor Details
-
ProfessionManager
public ProfessionManager()
-
-
Method Details
-
getProfession
Get a profession by name The profession instances are mainly know as CraftinTable objects that contains recipes and other data- Parameters:
profession- The name of the profession- Returns:
- The profession
-
getProfessionGui
Get a profession registry gui by name The profession gui instances are mainly know as ProfessionGuiRegistry objects that contains the gui data- Parameters:
profession- The name of the profession- Returns:
- The profession gui
-
openProfessionGui
Open a professions gui for a player and get a professions registry object This object handles all players guis individually by caching them in a map.- Parameters:
profession- The name of the professionplayer- The Player object- Returns:
- The profession gui object
-
closeProfessionGui
Close the professions gui for all players This will close all guis contained in the profession registry and for every player In case you want to close a gui for a specific player, you can just use Player#closeInventory()- Parameters:
professionName- The name of the profession
-