Teleport.entity constructor

Teleport.entity(
  1. Entity entity, {
  2. required Entity to,
  3. dynamic facing,
})

Implementation

Teleport.entity(this.entity, {required Entity to, dynamic facing}) {
  this.to = to.toString();
  _setFacing(facing);
}