Cancellable
public 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.Result
entity
Constructor | Description |
---|---|
SlimeTargetLivingEntityEvent(@NotNull Slime slime,
@NotNull LivingEntity target) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull LivingEntity |
getTarget() |
Get the targeted entity
|
isCancelled, setCancelled
getEntityType
callEvent, getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntity, getHandlerList, getHandlers, isCancelled, setCancelled
public SlimeTargetLivingEntityEvent(@NotNull @NotNull Slime slime, @NotNull @NotNull LivingEntity target)
@NotNull public @NotNull LivingEntity getTarget()
Copyright © 2020. All rights reserved.