EntityAdapter

interface EntityAdapter

An adapter of entity

Functions

Link copied to clipboard
abstract fun bodyYaw(): Float
Gets entity's body yaw (y-rot)
Link copied to clipboard
abstract fun damageTick(): Float
Gets entity's damage tick
Link copied to clipboard
abstract fun dead(): Boolean
Checks source entity is dead
Link copied to clipboard
@NotNull
abstract fun entity(): @NotNull Entity
Gets a source
Link copied to clipboard
abstract fun fly(): Boolean
Check source entity is on the fly
Link copied to clipboard
abstract fun glow(): Boolean
Check source entity is on a glow
Link copied to clipboard
abstract fun ground(): Boolean
Checks source entity is on the ground
Link copied to clipboard
@NotNull
abstract fun handle(): @NotNull Any
Gets vanilla entity
Link copied to clipboard
Checks this entity has controlling passenger
Link copied to clipboard
abstract fun headYaw(): Float
Gets entity's yaw (y-rot)
Link copied to clipboard
abstract fun id(): Int
Gets entity id
Link copied to clipboard
abstract fun invisible(): Boolean
Checks source entity is invisible
Link copied to clipboard
abstract fun onWalk(): Boolean
Check source entity is on a walk
Link copied to clipboard
@NotNull
abstract fun passengerPosition(): @NotNull Vector3f
Gets entity's passenger point
Link copied to clipboard
abstract fun pitch(): Float
Gets entity's pitch (x-rot)
Link copied to clipboard
@NotNull
open fun registry(): @NotNull Optional<EntityTrackerRegistry>
Gets tracker registry of this adapter
Link copied to clipboard
abstract fun scale(): Double
Gets entity's scale
Link copied to clipboard
@NotNull
@Unmodifiable
abstract fun trackedPlayer(): @NotNull @Unmodifiable Collection<Player>
Gets tracked player
Link copied to clipboard
abstract fun walkSpeed(): Float
Gets entity's walk speed