Cancellable
public class SlimeChangeDirectionEvent extends SlimePathfindEvent implements Cancellable
This event does not fire for the entity's actual movement. Only when it is choosing to change direction.
Event.Result
entity
Constructor | Description |
---|---|
SlimeChangeDirectionEvent(@NotNull Slime slime,
float yaw) |
Modifier and Type | Method | Description |
---|---|---|
float |
getNewYaw() |
Get the new chosen yaw
|
void |
setNewYaw(float yaw) |
Set the new chosen yaw
|
isCancelled, setCancelled
getEntityType
callEvent, getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntity, getHandlerList, getHandlers, isCancelled, setCancelled
public SlimeChangeDirectionEvent(@NotNull @NotNull Slime slime, float yaw)
Copyright © 2020. All rights reserved.