getVehicle

public abstract Entity getVehicle()

Get the vehicle that this player is inside. If there is no vehicle, null will be returned.

Return

The current vehicle.