PlatformEntity

Represents an entity in the underlying platform.

This interface provides access to basic entity properties like UUID and location, as well as integration with the EntityTrackerRegistry.

Since

2.0.0

Inheritors

Functions

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.