Package net.luckperms.api.platform
Interface PlatformEntity
-
public interface PlatformEntityRepresents an entity on the server.This does not relate directly to a "Minecraft Entity". The closest comparison is to a "CommandSender" or "CommandSource".
The various types of
PlatformEntityare detailed inPlatformEntity.Type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPlatformEntity.TypeThe different types ofPlatformEntity
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull StringgetName()Gets the name of the object@NonNull PlatformEntity.TypegetType()Gets the entities type.@Nullable UUIDgetUniqueId()Gets the unique id of the entity, if it has one.
-
-
-
Method Detail
-
getUniqueId
@Nullable UUID getUniqueId()
Gets the unique id of the entity, if it has one.For players, this returns their uuid assigned by the server.
- Returns:
- the uuid of the object, if available
-
getType
@NonNull PlatformEntity.Type getType()
Gets the entities type.- Returns:
- the type
-
-