Cancellablepublic 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.Resultentity| Constructor | Description |
|---|---|
SlimeChangeDirectionEvent(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, setCancelledgetEntityTypecallEvent, getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEntity, getHandlerList, getHandlers, isCancelled, setCancelledpublic SlimeChangeDirectionEvent(@NotNull
Slime slime,
float yaw)
Copyright © 2020. All rights reserved.