The entity that this trait will be attached to.
Optional
options: EntityRideableTraitOptionsThe options for the entity rideable trait.
Protected
Readonly
entityThe entity that this trait is attached to.
Readonly
identifierThe identifier of the trait.
Static
Readonly
componentsThe entity component identifiers that this trait is compatible with by default. If empty, the trait will not be initialized by any component.
Static
Readonly
identifierThe identifier of the trait.
Static
Readonly
typesThe entity type identifiers that this trait is compatible with by default.
Protected
dimensionThe dimension that the entity is in.
The dynamic property for the rideable trait.
Set the dynamic property for the rideable trait.
The value to set for the dynamic property.
Add a rider to the entity.
The entity to add as a rider.
True if the rider was added successfully, false otherwise.
Add a rideable seat to the entity.
The rideable seat to add.
Clear all riders from the entity.
Clear all seats from the entity.
Clones the entity trait.
The entity to clone the trait to.
A new entity trait.
Create a new rideable seat for the entity.
The options for the rideable seat.
The created rideable seat.
Get the next available seat for the entity.
The next available seat, or null if no seats are available.
Get all riders of the entity.
An array of tuples containing the rider entity and the seat they are in.
Check if the entity has available seats.
True if the entity has available seats, false otherwise.
Called when the trait is added to an object.
Optional
onCalled when the entity that this trait is attached executes a command.
The command execution state.
Whether the command was successful; default is true.
Optional
onCalled when a container that is attached to the entity is updated.
The container that was updated.
Optional
onCalled when the entity that this trait is attached to is killed.
The details of the entity death.
Optional
onCalled when the entity that this trait is attached to is despawned from a dimension.
The details of the entity despawn.
Optional
onCalled when the entity that this trait is attached to falls on a block.
The event properties of the entity falling on a block.
Called when the entity that this trait is attached to is interacted with by a player.
The player that interacted with the entity.
The method that the player used to interact with the entity.
Called when the trait is removed from an object.
Optional
onCalled then the entity that this trait is attached to is spawned into a dimension.
The details of the entity spawn.
Optional
onCalled when the trait is ticked by the dimension.
The details about the tick event.
Remove a rider from the entity.
The entity to remove as a rider.
Remove a rideable seat from the entity.
The rideable seat to remove.
Creates a new instance of the entity rideable trait.