Class ProfessionService

java.lang.Object
studio.magemonkey.fusion.api.events.services.ProfessionService

public class ProfessionService extends Object
  • Constructor Details

    • ProfessionService

      public ProfessionService()
  • Method Details

    • joinProfession

      public void joinProfession(String professionName, org.bukkit.entity.Player player, double moneyCost, int expCost)
      Call the ProfessionJoinEvent.
      Parameters:
      professionName - The name of the profession.
      player - The player that wants to join the profession.
      moneyCost - The money cost to join the profession.
      expCost - The experience cost to join the profession.
    • leaveProfession

      public void leaveProfession(CraftingTable table, org.bukkit.entity.Player player)
      Call the ProfessionLeaveEvent.
      Parameters:
      table - The crafting table (profession) the player wants to leave.
      player - The player that wants to leave the profession.
    • giveProfessionExp

      public void giveProfessionExp(org.bukkit.entity.Player player, CraftingTable table, long xp)
      Call the ProfessionGainXpEvent.
      Parameters:
      player - The player that gains the experience.
      table - The crafting table (profession) the player gains experience in.
      xp - The amount of experience the player gains.
    • setProfessionExp

      public void setProfessionExp(org.bukkit.entity.Player player, CraftingTable table, long xp)
    • levelUpProfession

      public void levelUpProfession(org.bukkit.entity.Player player, CraftingTable table, int previousLevel, int newLevel)
      Call the ProfessionLevelUpEvent.
      Parameters:
      player - The player that levels up.
      table - The crafting table (profession) the player levels up in.
      previousLevel - The previous level of the player.
      newLevel - The new level of the player.
    • masterProfession

      public void masterProfession(String professionName, org.bukkit.entity.Player player, boolean isMastered)
      Call the ProfessionMasteryEvent.
      Parameters:
      professionName - The name of the profession.
      player - The player that masters the profession.
      isMastered - If the player has mastered the profession.