Class CardUseAbilityEvent
-
- All Implemented Interfaces:
-
org.bukkit.event.Cancellable
public class CardUseAbilityEvent extends EntityCardEvent implements Cancellable
Called when a BattleCard uses an ability.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumCardUseAbilityEvent.AbilityTypeThe AbilityType of the ability used.
-
Field Summary
Fields Modifier and Type Field Description private final CardUseAbilityEvent.AbilityTypeabilityTypeprivate final BattleCard<?>card
-
Constructor Summary
Constructors Constructor Description CardUseAbilityEvent(BattleCard<?> card, CardUseAbilityEvent.AbilityType type)
-
Method Summary
Modifier and Type Method Description final CardUseAbilityEvent.AbilityTypegetAbilityType()The AbilityType of the ability used. BooleanisCancelled()UnitsetCancelled(Boolean cancel)-
Methods inherited from class me.gamercoder215.battlecards.api.events.entity.EntityCardEvent
getCard, getHandlers -
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous -
Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntity, getEntityType -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CardUseAbilityEvent
CardUseAbilityEvent(BattleCard<?> card, CardUseAbilityEvent.AbilityType type)
-
-
Method Detail
-
getAbilityType
final CardUseAbilityEvent.AbilityType getAbilityType()
The AbilityType of the ability used.
-
isCancelled
Boolean isCancelled()
-
setCancelled
Unit setCancelled(Boolean cancel)
-
-
-
-