PlatformPlayer

Represents a player in the underlying platform.

This interface combines the properties of a living entity and an offline player, providing access to player-specific data like name and online status.

Since

2.0.0

Functions

Link copied to clipboard
@NotNull
abstract fun eyeLocation(): @NotNull PlatformLocation
Returns the eye location of the living entity.
Link copied to clipboard
@NotNull
abstract fun location(): @NotNull PlatformLocation
Returns the current location of the entity.
Link copied to clipboard
@NotNull
abstract fun name(): @NotNull String
Returns the name of the player.
Link copied to clipboard
@NotNull
open fun registry(): @NotNull Optional<EntityTrackerRegistry>
Retrieves the tracker registry associated with this entity.
Link copied to clipboard
@Nullable
open fun task(@NotNull runnable: @NotNull Runnable): @Nullable ModelTask
Schedules a task to run on the next tick, synchronized with this region holder.
Link copied to clipboard
@Nullable
open fun taskLater(delay: Long, @NotNull runnable: @NotNull Runnable): @Nullable ModelTask
Schedules a task to run after a delay, synchronized with this region holder.
Link copied to clipboard
@NotNull
open fun tracker(@NotNull name: @NotNull String): @NotNull Optional<EntityTracker>
Retrieves a specific tracker by name from this entity's registry.
Link copied to clipboard
@NotNull
abstract fun uuid(): @NotNull UUID
Returns the unique identifier of the player.