Tp constructor

Tp(
  1. Entity entity, {
  2. required Location to,
  3. dynamic facing,
  4. Rotation? rot,
})

Sets the location of an Entity to a new Location and Rotation(optional).

Implementation

Tp(this.entity, {required Location to, dynamic facing, Rotation? rot}) {
  this.to = to.toString();
  if (rot != null) this.to += ' $rot';
  _setFacing(facing);
}