McEntity

interface McEntity

Represents a Minecraft entity.

Properties

Link copied to clipboard
abstract val eyeHeight: Double

Gets the height of the entity's eyes from its base.

Link copied to clipboard
abstract val hitBoxHeight: Float

Gets the height of the entity's hitbox.

Link copied to clipboard
abstract val hitBoxWidth: Float

Gets the width of the entity's hitbox.

Link copied to clipboard
abstract val id: Int

Gets the entity's numerical identifier.

Link copied to clipboard
abstract val uuid: UUID

Gets the unique identifier of the entity.

Functions

Link copied to clipboard
abstract fun <T> getInstance(): T

Gets the server's implementation instance for this entity.

Link copied to clipboard
abstract fun getLookAngle(): Pos3d

Retrieves the entity's look angle.

abstract fun getLookAngle(lookAngle: Pos3d): Pos3d

Retrieves the entity's look angle and copies it to the provided lookAngle instance.

Link copied to clipboard
abstract fun getPosition(): Pos3d

Retrieves the position of the entity.

abstract fun getPosition(position: Pos3d): Pos3d

Retrieves the entity's position and copies it to the provided position instance.