Package net.citizensnpcs.api.event
Class NPCDamageEvent
java.lang.Object
org.bukkit.event.Event
net.citizensnpcs.api.event.CitizensEvent
net.citizensnpcs.api.event.NPCEvent
net.citizensnpcs.api.event.NPCDamageEvent
- All Implemented Interfaces:
Cancellable
- Direct Known Subclasses:
NPCDamageByBlockEvent
,NPCDamageByEntityEvent
,NPCDamageEntityEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCause()
double
getEvent()
static HandlerList
boolean
void
setCancelled
(boolean cancel) void
setDamage
(double damage) void
setDamage
(int damage) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
NPCDamageEvent
-
-
Method Details
-
getCause
-
getDamage
public double getDamage() -
getEvent
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceCancellable
-
setDamage
public void setDamage(double damage) -
setDamage
public void setDamage(int damage) -
getHandlerList
-