mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 20:53:54 -07:00
35
paper-api/src/main/java/org/bukkit/Entity.java
Normal file
35
paper-api/src/main/java/org/bukkit/Entity.java
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
package org.bukkit;
|
||||
|
||||
/**
|
||||
* Represents a base entity in the world
|
||||
*/
|
||||
public interface Entity {
|
||||
/**
|
||||
* Gets the entitys current position
|
||||
*
|
||||
* @return Location containing the position of this entity
|
||||
*/
|
||||
public Location getLocation();
|
||||
|
||||
/**
|
||||
* Gets the current world this entity resides in
|
||||
*
|
||||
* @return World
|
||||
*/
|
||||
public World getWorld();
|
||||
|
||||
/**
|
||||
* Teleports this entity to the given location
|
||||
*
|
||||
* @param location New location to teleport this entity to
|
||||
*/
|
||||
public void teleportTo(Location location);
|
||||
|
||||
/**
|
||||
* Returns a unique ID for this entity
|
||||
*
|
||||
* @return Entity ID
|
||||
*/
|
||||
public int getEntityID();
|
||||
}
|
Reference in New Issue
Block a user