Class PathfinderClearEvent
java.lang.Object
org.bukkit.event.Event
me.gamercoder215.mobchip.bukkit.events.pathfinder.PathfinderClearEvent
Called when Pathfinders are cleared
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionPathfinderClearEvent
(@NotNull EntityAI ai, boolean target) Construct a PathfinderClearEvent. -
Method Summary
Modifier and TypeMethodDescriptiongetAI()
Gets the current EntityAI involved in this Event.static HandlerList
Gets the Handlers of this PathfinderEvent.Gets the Handlers of this PathfinderEvent.boolean
isTarget()
Whether this EntityAI is the Target AI.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PathfinderClearEvent
Construct a PathfinderClearEvent.- Parameters:
ai
- EntityAI involvedtarget
- true if AI is target, else false
-
-
Method Details
-
getHandlers
Gets the Handlers of this PathfinderEvent.- Specified by:
getHandlers
in classEvent
- Returns:
- Handlers
-
getHandlerList
Gets the Handlers of this PathfinderEvent.- Returns:
- Handlers
-
getAI
Gets the current EntityAI involved in this Event.- Returns:
- EntityAI involved
-
isTarget
public boolean isTarget()Whether this EntityAI is the Target AI.- Returns:
- true if EntityAI is target, else false
-