ModEntity

Represents a Mod entity wrapped as a PlatformEntity.

Since

2.0.0

Parameters

source

the source NMS entity

Constructors

Link copied to clipboard
@ApiStatus.Internal
constructor(@NotNull source: @NotNull Entity)

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@NotNull
open fun location(): @NotNull PlatformLocation
Link copied to clipboard
@NotNull
open fun of(@NotNull source: @NotNull Entity): @NotNull ModEntity
Creates a ModEntity from the source.
Link copied to clipboard
open fun registry(): @NotNull Optional<EntityTrackerRegistry>
Link copied to clipboard
open fun task(runnable: @NotNull Runnable): @Nullable ModelTask
Link copied to clipboard
open fun taskLater(delay: Long, runnable: @NotNull Runnable): @Nullable ModelTask
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
open fun tracker(name: @NotNull String): @NotNull Optional<EntityTracker>
Link copied to clipboard
@NotNull
open fun uuid(): @NotNull UUID