Class PathfinderAddEvent
java.lang.Object
org.bukkit.event.Event
me.gamercoder215.mobchip.bukkit.events.pathfinder.PathfinderEvent
me.gamercoder215.mobchip.bukkit.events.pathfinder.PathfinderAddEvent
- All Implemented Interfaces:
Cancellable
Called before a Pathfinder is added
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionPathfinderAddEvent
(@NotNull EntityAI ai, @NotNull Pathfinder p, boolean target, int priority) Constructs a PathfinderAddEvent. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the priority that this Pathfinder will be added to.boolean
void
setCancelled
(boolean cancel) Methods inherited from class me.gamercoder215.mobchip.bukkit.events.pathfinder.PathfinderEvent
getAI, getHandlerList, getHandlers, getPathfinder, isTarget
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
Method Details
-
getPriority
public int getPriority()Gets the priority that this Pathfinder will be added to.- Returns:
- Priority added
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceCancellable
-