Cancellablepublic class SlimeTargetLivingEntityEvent extends SlimePathfindEvent implements Cancellable
This event does not fire for the entity's actual movement. Only when it is choosing to start moving.
Event.Resultentity| Constructor | Description |
|---|---|
SlimeTargetLivingEntityEvent(Slime slime,
LivingEntity target) |
| Modifier and Type | Method | Description |
|---|---|---|
LivingEntity |
getTarget() |
Get the targeted entity
|
isCancelled, setCancelledgetEntityTypecallEvent, getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEntity, getHandlerList, getHandlers, isCancelled, setCancelledpublic SlimeTargetLivingEntityEvent(@NotNull
Slime slime,
@NotNull
LivingEntity target)
@NotNull public LivingEntity getTarget()
Copyright © 2019. All rights reserved.