Class PathfinderEvent
java.lang.Object
org.bukkit.event.Event
me.gamercoder215.mobchip.bukkit.events.pathfinder.PathfinderEvent
- Direct Known Subclasses:
PathfinderAddEvent
,PathfinderRemoveEvent
Represents an event involving a Pathfinder
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionPathfinderEvent
(@Nullable EntityAI ai, @Nullable Pathfinder pathfinder, boolean target) Construct a PathfinderEvent. -
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.Gets the Pathfinder involved in this event.boolean
isTarget()
Whether this EntityAI is the Target AI.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
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
-
getPathfinder
Gets the Pathfinder involved in this event.- Returns:
- Pathfinder involved
-