teleport
Teleports the entity represented by this ModeledEntity to the specified location. Optionally teleports the underlying entity if one is associated with this ModeledEntity. If another plugin has already teleported the underlying entity, do not teleport the underlying entity. If another plugin did not manage the underlying entity, teleport it. This primarily pushes teleport packets to clients.
Parameters
location
the target Location to which the entity should be teleported
teleportUnderlyingEntity
a boolean indicating whether the underlying entity, if present, should also be teleported to the specified location