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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Entity involved in this eventstatic HandlerListReturns the reason for the targetingbooleanvoidsetCancelled(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:
getHandlersin classEvent
-
getReason
Returns the reason for the targeting- Returns:
- The reason
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-
getHandlerList
-