PlatformLivingEntity

Represents a living entity in the underlying platform.

This interface extends PlatformEntity to provide access to living entity-specific properties, such as eye location.

Since

2.0.0

Inheritors

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
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 entity.