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 Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPathfinderEvent(@Nullable EntityAI ai, @Nullable Pathfinder pathfinder, boolean target) Construct a PathfinderEvent. -
Method Summary
Modifier and TypeMethodDescription@Nullable EntityAIgetAI()Gets the current EntityAI involved in this Event.static HandlerListGets the Handlers of this PathfinderEvent.Gets the Handlers of this PathfinderEvent.@Nullable PathfinderGets the Pathfinder involved in this event.booleanisTarget()Whether this EntityAI is the Target AI.Methods inherited from class Event
getEventName, isAsynchronous
-
Constructor Details
-
PathfinderEvent
public PathfinderEvent(@Nullable @Nullable EntityAI ai, @Nullable @Nullable Pathfinder pathfinder, boolean target) Construct a PathfinderEvent.- Parameters:
ai- EntityAI involvedpathfinder- Pathfinder involvedtarget- true if AI is target, else false
-
-
Method Details
-
getHandlers
Gets the Handlers of this PathfinderEvent.- Specified by:
getHandlersin 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
-