leaveVehicle

public abstract boolean leaveVehicle()

Leave the current vehicle. If the entity is currently in getClassById vehicle (and is removed from it), true will be returned, otherwise false will be returned.

Return

True if the entity was in getClassById vehicle.