Class SkillHealEvent
java.lang.Object
org.bukkit.event.Event
studio.magemonkey.fabled.api.event.SkillHealEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class SkillHealEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
An event for when an entity is healed by
another entity with the use of a skill.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionSkillHealEvent
(org.bukkit.entity.LivingEntity healer, org.bukkit.entity.LivingEntity target, double damage) Initializes a new event -
Method Summary
Modifier and TypeMethodDescriptiondouble
Retrieves the amount of damage dealtstatic org.bukkit.event.HandlerList
Retrieves the handlers for the eventorg.bukkit.event.HandlerList
Retrieves the handlers for the eventorg.bukkit.entity.LivingEntity
Retrieves the entity that dealt the damageorg.bukkit.entity.LivingEntity
Retrieves the entity that received the damageboolean
Checks whether the event is cancelledvoid
setAmount
(double amount) Sets the amount of damage dealtvoid
setCancelled
(boolean cancelled) Sets the cancelled state of the eventMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
SkillHealEvent
public SkillHealEvent(org.bukkit.entity.LivingEntity healer, org.bukkit.entity.LivingEntity target, double damage) Initializes a new event- Parameters:
healer
- entity dealing the damagetarget
- entity receiving the damagedamage
- the amount of damage dealt
-
-
Method Details
-
getHealer
public org.bukkit.entity.LivingEntity getHealer()Retrieves the entity that dealt the damage- Returns:
- entity that dealt the damage
-
getTarget
public org.bukkit.entity.LivingEntity getTarget()Retrieves the entity that received the damage- Returns:
- entity that received the damage
-
getAmount
public double getAmount()Retrieves the amount of damage dealt- Returns:
- amount of damage dealt
-
setAmount
public void setAmount(double amount) Sets the amount of damage dealt- Parameters:
amount
- amount of damage dealt
-
isCancelled
public boolean isCancelled()Checks whether the event is cancelled- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
- Returns:
- true if cancelled, false otherwise
-
setCancelled
public void setCancelled(boolean cancelled) Sets the cancelled state of the event- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
- Parameters:
cancelled
- the cancelled state of the event
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()Retrieves the handlers for the event- Specified by:
getHandlers
in classorg.bukkit.event.Event
- Returns:
- list of event handlers
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Retrieves the handlers for the event- Returns:
- list of event handlers
-