Package com.sucy.skill.api.event
Class SkillPushEvent
java.lang.Object
org.bukkit.event.Event
com.sucy.skill.api.event.SkillPushEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class SkillPushEvent
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
ConstructorsConstructorDescriptionSkillPushEvent(org.bukkit.entity.LivingEntity caster, org.bukkit.entity.LivingEntity target, org.bukkit.util.Vector velocity) Initializes a new event -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListRetrieves the handlers for the eventorg.bukkit.event.HandlerListRetrieves the handlers for the eventbooleanChecks whether the event is cancelledvoidsetCancelled(boolean cancelled) Sets the cancelled state of the eventvoidsetVelocity(org.bukkit.util.Vector velocity) Sets theVectorthe push will use.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
SkillPushEvent
public SkillPushEvent(org.bukkit.entity.LivingEntity caster, org.bukkit.entity.LivingEntity target, org.bukkit.util.Vector velocity) Initializes a new event- Parameters:
caster- entity doing the pushingtarget- entity receiving the pushvelocity- the amount of damage dealt
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Retrieves the handlers for the event- Returns:
- list of event handlers
-
setVelocity
public void setVelocity(org.bukkit.util.Vector velocity) Sets theVectorthe push will use.- Parameters:
velocity-
-
isCancelled
public boolean isCancelled()Checks whether the event is cancelled- Specified by:
isCancelledin 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:
setCancelledin 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:
getHandlersin classorg.bukkit.event.Event- Returns:
- list of event handlers
-