Class PlayerComboFinishEvent

java.lang.Object
org.bukkit.event.Event
studio.magemonkey.fabled.api.event.PlayerComboFinishEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class PlayerComboFinishEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Event called when a player changes classes
  • Constructor Details

    • PlayerComboFinishEvent

      public PlayerComboFinishEvent(PlayerData player, int combo, String skill)
      Parameters:
      player - player performing the combo
      combo - combo that was performed
      skill - skill used
  • Method Details

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Returns:
      gets the handlers for the event
    • getPlayerData

      public PlayerData getPlayerData()
      Returns:
      data of the player performing the combo
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Returns:
      player performing the combo
    • getCombo

      public int getCombo()
      Returns:
      the combo performed
    • getSkill

      public Skill getSkill()
      Returns:
      skill to cast from the combo
    • getSkillName

      public String getSkillName()
      Returns:
      name of the skill to cast from the combo
    • isCancelled

      public boolean isCancelled()
      Checks whether the event is cancelled
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
      Returns:
      true if cancelled, false otherwise
    • setCancelled

      public void setCancelled(boolean cancelled)
      Sets whether the switch should be cancelled
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Parameters:
      cancelled - cancelled state of the event
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      gets the handlers for the event