Entity.passenger

Sets the entity's passenger. The vehicle of the passenger is set automatically.

  1. Entity passenger [@property getter]
  2. Entity passenger [@property setter]
    class Entity
    @property
    passenger

Examples

Player player = "steve".player;
Boat boat = world.spawn!Boat;

boat.passenger = player;
assert(player.vehicle == boat);

Meta