public class EntityPathfindEvent extends EntityEvent implements Cancellable
Event.Resultentity| Constructor and Description |
|---|
EntityPathfindEvent(Entity entity,
Location loc,
Entity targetEntity) |
| Modifier and Type | Method and Description |
|---|---|
Entity |
getEntity()
The Entity that is pathfinding.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Location |
getLoc()
The Location of where the entity is about to move to.
|
Entity |
getTargetEntity()
If the Entity is trying to pathfind to an entity, this is the entity in relation.
|
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
getEntityTypecallEvent, getEventName, isAsynchronouspublic Entity getEntity()
getEntity in class EntityEventpublic Entity getTargetEntity()
public Location getLoc()
public HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventCopyright © 2021. All rights reserved.