public interface Entity
This does not relate directly to a "Minecraft Entity". The closest comparison is to a "CommandSender" or "CommandSource" in Bukkit/Sponge.
The various types of Entity are detailed in Entity.Type.
| Modifier and Type | Interface and Description |
|---|---|
static class |
Entity.Type
The different types of
Entity |
| Modifier and Type | Method and Description |
|---|---|
@NonNull String |
getName()
Gets the name of the object
|
@NonNull Entity.Type |
getType()
Gets the entities type.
|
@Nullable UUID |
getUniqueId()
Gets the unique id of the entity, if it has one.
|
@Nullable UUID getUniqueId()
For players, this returns their uuid assigned by the server.
@NonNull String getName()
@NonNull Entity.Type getType()