Class ProfessionManager

java.lang.Object
studio.magemonkey.fusion.api.ProfessionManager

public class ProfessionManager extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    closeProfessionGui(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 data
    Get a profession registry gui by name The profession gui instances are mainly know as ProfessionGuiRegistry objects that contains the gui data
    openProfessionGui(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProfessionManager

      public ProfessionManager()
  • Method Details

    • getProfession

      public CraftingTable getProfession(String profession)
      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

      public ProfessionGuiRegistry getProfessionGui(String profession)
      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

      public ProfessionGuiRegistry openProfessionGui(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.
      Parameters:
      profession - The name of the profession
      player - The Player object
      Returns:
      The profession gui object
    • closeProfessionGui

      public void closeProfessionGui(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()
      Parameters:
      professionName - The name of the profession