McServerEntity

Represents an entity in a Minecraft server.

Inheritors

Properties

Link copied to clipboard
abstract val eyeHeight: Double
Link copied to clipboard
abstract val hitBoxHeight: Float
Link copied to clipboard
abstract val hitBoxWidth: Float
Link copied to clipboard
abstract val id: Int
Link copied to clipboard
abstract val uuid: UUID
Link copied to clipboard
abstract val world: McServerWorld

Gets the world in which the entity is currently located.

Functions

Link copied to clipboard
abstract fun <T> getInstance(): T
Link copied to clipboard
abstract fun getLookAngle(): Pos3d
abstract fun getLookAngle(lookAngle: Pos3d): Pos3d
Link copied to clipboard
abstract fun getPosition(): Pos3d
abstract fun getPosition(position: Pos3d): Pos3d
Link copied to clipboard

Creates a new instance of ServerPos3d representing the entity's position.

abstract fun getServerPosition(position: ServerPos3d): ServerPos3d

Copies all position information to the provided ServerPos3d instance without creating a new instance of ServerPos3d.

Link copied to clipboard
abstract fun isValid(): Boolean

Checks if entity is not removed from the world.