moveTo

public boolean moveTo(Location target, double requestedSpeedModifier)

Replaces the current destination.

Return

false when the request is invalid or the handle is already closed

Parameters

target

destination in the entity's current world

speedModifier

multiplier applied to the entity's movement-speed attribute; 1.0 is normal speed