Package dev.polv.taleapi.entity
Interface TaleEntity
- All Known Subinterfaces:
TalePlayer
public interface TaleEntity
Represents any entity in the world.
This is the base interface for all entities including players, mobs, NPCs, and other game objects that exist in the world with a position.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current location of this entity in the world.Returns the unique identifier for this entity.voidTeleports the entity to the specified location.
-
Method Details
-
getUniqueId
String getUniqueId()Returns the unique identifier for this entity.This ID is guaranteed to be unique across all entities in the server.
- Returns:
- the entity's unique identifier
-
getLocation
Location getLocation()Returns the current location of this entity in the world.- Returns:
- the entity's current location
-
teleport
Teleports the entity to the specified location.This is an instant position change that bypasses normal movement. Unlike regular movement, teleportation typically does not fire movement events (implementation-dependent).
- Parameters:
location- the destination location
-