Class endstone::ActorToggleGlideEvent¶
ClassList > endstone > ActorToggleGlideEvent
Called when an Actor 's gliding state is toggled with an elytra.
#include <endstone/event/actor/actor_toggle_glide_event.h>
Inherits the following classes: endstone::ActorEvent
Public Functions¶
| Type | Name |
|---|---|
| ActorToggleGlideEvent (const NotNull< Mob > & actor, bool gliding) |
|
| bool | isGliding () const Returns whether the actor is now gliding or not. |
Public Functions inherited from endstone::ActorEvent¶
| Type | Name |
|---|---|
| ActorEvent (const NotNull< ActorType > & actor) |
|
| const NotNull< ActorType > & | getActor () const Returns the Actor involved in this event. |
| const endstone::ActorType & | getActorType () const Returns the type of the Actor involved in this event. |
| ~ActorEvent () override |
Public Functions inherited from endstone::Event¶
See endstone::Event
| Type | Name |
|---|---|
| Event (bool async=false) |
|
| Event (const Event &) = delete |
|
| Event (Event &&) = default |
|
| virtual std::string | getEventName () const = 0 Gets a user-friendly identifier for this event. |
| bool | isAsynchronous () const Any custom event that should not by synchronized with other events must use the specific constructor. |
| Event & | operator= (const Event &) = delete |
| Event & | operator= (Event &&) = default |
| virtual | ~Event () = default |
Public Functions Documentation¶
function ActorToggleGlideEvent¶
inline explicit endstone::ActorToggleGlideEvent::ActorToggleGlideEvent (
const NotNull < Mob > & actor,
bool gliding
)
function isGliding¶
Returns whether the actor is now gliding or not.
Returns:
the new gliding state
The documentation for this class was generated from the following file include/endstone/event/actor/actor_toggle_glide_event.h