mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
Added Entity.teleportTo(Entity)
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -39,6 +39,10 @@ public abstract class CraftEntity implements org.bukkit.Entity {
|
|||||||
entity.b(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
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() {
|
public int getEntityID() {
|
||||||
return entity.g;
|
return entity.g;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user