## Teleport
Sets the location of an Entity to a new Location and Rotation(optional).
|constructor| |
|--|--|
|Entity|the entity you want to teleport(required)|
|to|the target Location(required)|
|facing| a Location or Entity to face|
|rotation|a Rotation object defining the new rotation|
**Example:**
```dart
Teleport(
Entity.Player(),
to: Location.glob(x: 5, y: 10, z: 5),
facing: Location.here()
)
⇒ tp @p 5 10 5 facing ~ ~ ~
```
And you can also teleport to another entity:
|Teleport.entity| |
|--|--|
|Entity|the entity you want to teleport(required)|
|to|the target entity(required)|
|facing| a Location or Entity to face|
```dart
Teleport(
Entity.Player(),
to: Entity(name: "target", limit: 1)
)
⇒ tp @p @e[name="target",limit=1]
```