mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-14 13:43:55 +01:00
Added Entity.teleportTo(Entity)
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
31546ddf8e
commit
ee4573d9d1
1 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,10 @@ public abstract class CraftEntity implements org.bukkit.Entity {
|
|||
entity.b(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
||||
}
|
||||
|
||||
public void teleportTo(org.bukkit.Entity destination) {
|
||||
teleportTo(destination.getLocation());
|
||||
}
|
||||
|
||||
public int getEntityID() {
|
||||
return entity.g;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue