Class endstone::ActorDismountEvent¶
ClassList > endstone > ActorDismountEvent
Called when an Actor stops riding anotherActor .
#include <endstone/event/actor/actor_dismount_event.h>
Inherits the following classes: endstone::Cancellable
Public Functions¶
| Type | Name |
|---|---|
| ActorDismountEvent (const NotNull< Actor > & actor, const NotNull< Actor > & vehicle) |
|
| ENDSTONE_EVENT (ActorDismountEvent) |
|
| const NotNull< Actor > & | getVehicle () const Gets the actor that is being dismounted. |
Public Functions inherited from endstone::Cancellable¶
| Type | Name |
|---|---|
| virtual void | cancel () Cancel this event. |
| virtual bool | isCancelled () override const Gets the cancellation state of this event. |
| virtual void | setCancelled (bool cancel) override Sets the cancellation state of this event. |
Public Functions inherited from endstone::ICancellable¶
| Type | Name |
|---|---|
| virtual void | cancel () = 0 Cancels this event. |
| virtual bool | isCancelled () const = 0 Gets the cancellation state of this event. |
| virtual void | setCancelled (bool cancel) = 0 Sets the cancellation state of this event. |
| virtual | ~ICancellable () = default |
Public Functions Documentation¶
function ActorDismountEvent¶
inline explicit endstone::ActorDismountEvent::ActorDismountEvent (
const NotNull < Actor > & actor,
const NotNull < Actor > & vehicle
)
function ENDSTONE_EVENT¶
function getVehicle¶
Gets the actor that is being dismounted.
Returns:
the vehicle
The documentation for this class was generated from the following file include/endstone/event/actor/actor_dismount_event.h