Entity

Field

Type

Description

prevPosX

double

Entity position X before update

prevPosY

double

Entity position Y before update

prevPosZ

double

Entity position Z before update

posX

double

Entity position X

posY

double

Entity position Y

posZ

double

Entity position Z

motionX

double

Entity motion X

motionY

double

Entity motion Y

motionZ

double

Entity motion Z

rotationYaw

float

Entity yaw

rotationPitch

float

Entity pitch

prevRotationYaw

float

Entity yaw before update

prevRotationPitch

float

Entity pitch before update

onGround

boolean

Entity ground state

isDead

boolean

Is entity dead

fallDistance

float

Entity fall distance (in blocks)

lastTickPosX

double

X coordinate at the previous tick

lastTickPosY

double

Y coordinate at the previous tick

lastTickPosZ

double

Z coordinate at the previous tick

ticksExisted

int

How many ticks has this entity had ran since being alive

hurtResistantTime

int

Remaining time an entity will be "immune" to further damage after being hurt

Methods

Type

Description

getName

String

Returns the name of an entity

getDisplayName

IChatComponent

Returns the Display Name of an entity. Use getDisplayName().getFormattedText()

Last updated