EntityWrapper

class EntityWrapper(val handle: Entity)

Lightweight wrapper around a Minecraft entity, returned to scripts.

Constructors

Link copied to clipboard
constructor(handle: Entity)

Properties

Link copied to clipboard
val handle: Entity

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getX(): Double
Link copied to clipboard
fun getY(): Double
Link copied to clipboard
fun getYaw(): Double

Body yaw in degrees, normalized to [-180, 180) (raw yRot accumulates unbounded).

Link copied to clipboard
fun getZ(): Double
Link copied to clipboard

True if this entity is the local player (matched by UUID, not name).

Link copied to clipboard