Package net.citizensnpcs.api.event
Class EntityTargetNPCEvent
java.lang.Object
org.bukkit.event.Event
net.citizensnpcs.api.event.CitizensEvent
net.citizensnpcs.api.event.NPCEvent
net.citizensnpcs.api.event.EntityTargetNPCEvent
- All Implemented Interfaces:
Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the Entity involved in this eventstatic HandlerList
Returns the reason for the targetingboolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
EntityTargetNPCEvent
-
-
Method Details
-
getEntity
Returns the Entity involved in this event- Returns:
- Entity who is involved in this event
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getReason
Returns the reason for the targeting- Returns:
- The reason
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlerList
-