The javadoc description of the Entity#getVehicle() says,
Get the vehicle that this player is inside. If there is no vehicle, null will be returned.
However, this is incorrect. The word 'player' should be replaced with the word 'entity'.
The javadoc description of the Entity#getVehicle() says,
Get the vehicle that this player is inside. If there is no vehicle, null will be returned.
However, this is incorrect. The word 'player' should be replaced with the word 'entity'.