mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-31 21:37:39 +01:00
Added Entity.teleportTo(Entity)
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
880f2c11a5
commit
f2e2a23693
@ -21,11 +21,18 @@ public interface Entity {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Teleports this entity to the given location
|
* Teleports this entity to the given location
|
||||||
*
|
*
|
||||||
* @param location New location to teleport this entity to
|
* @param location New location to teleport this entity to
|
||||||
*/
|
*/
|
||||||
public void teleportTo(Location location);
|
public void teleportTo(Location location);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Teleports this entity to the target Entity
|
||||||
|
*
|
||||||
|
* @param destination Entity to teleport this entity to
|
||||||
|
*/
|
||||||
|
public void teleportTo(Entity destination);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a unique ID for this entity
|
* Returns a unique ID for this entity
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user