Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Caution
This class is still in pre-release. Its signature may change or it may be removed in future releases.
Manages callbacks that are connected to when an entity stops sneaking.
Methods
subscribe
subscribe(callback: (arg0: EntityStopSneakingAfterEvent) => void, options?: EntitySneakingChangedEventOptions): (arg0: EntityStopSneakingAfterEvent) => void
Adds a callback that will be called when an entity stops sneaking.
Parameters
- callback: (arg0: EntityStopSneakingAfterEvent) => void
- options?: EntitySneakingChangedEventOptions =
null
Returns (arg0: EntityStopSneakingAfterEvent) => void
Notes:
- This function can't be called in restricted-execution mode.
- This function can be called in early-execution mode.
unsubscribe
unsubscribe(callback: (arg0: EntityStopSneakingAfterEvent) => void): void
Removes a callback from being called when an entity stops sneaking.
Parameters
- callback: (arg0: EntityStopSneakingAfterEvent) => void
Notes:
- This function can't be called in restricted-execution mode.
- This function can be called in early-execution mode.