EntityLiving
This page goes over about the EntityLiving object. This object is based on Entity object.
Original methods
isAnimal(): Boolean
isAnimal(): BooleanReturns if the entity is an animal.
isMob(): Boolean
isMob(): BooleanReturns if the entity is a mob.
isPlayer(): Boolean
isPlayer(): BooleanReturns if the entity is a player.
getHealth(): Number
getHealth(): NumberReturns the entity health.
getMaxHealth(): Number
getMaxHealth(): NumberReturns the maximum entity health.
getHurtTime(): Number
getHurtTime(): NumberReturns the entity hurt time.
getMaxHurtTime(): Number
getMaxHurtTime(): NumberReturns the maximum entity hurt time.
getLastHurtTime(): Number
getLastHurtTime(): NumberReturns the previous tick entity hurt time.
getHeldItemStack(): ItemStack
getHeldItemStack(): ItemStackReturns the currently held item stack of the entity.
isDead(): Boolean
isDead(): BooleanReturns if the entity is dead.
Methods from superclass
isLiving(): Boolean
isLiving(): BooleanReturns if the entity is instance of LivingEntity.
getPosition(): Vector3d
getPosition(): Vector3dReturns the entity position.
getLastPosition(): Vector3d
getLastPosition(): Vector3dReturns the previous tick entity position.
getMotion(): Vector3d
getMotion(): Vector3dReturns the entity motion.
getRotation(): Vector2f
getRotation(): Vector2fReturns the entity rotation.
getLastRotation(): Vector2f
getLastRotation(): Vector2fReturns the previous tick entity rotation.
getTicksExisted(): Number
getTicksExisted(): NumberReturns the amount of ticks the entity has existed for.
getEntityId(): Number
getEntityId(): NumberReturns the entity ID.
getDisplayName(): String
getDisplayName(): StringReturns the entity display name.
getInventory(): Inventory
getInventory(): InventoryReturns the inventory of the entity.
getDistanceToEntity(entity): Number
getDistanceToEntity(entity): Numberentity
Entity
Another entity
Returns distance between this and another entity.
getDistance(x, y, z): Number
getDistance(x, y, z): Numberx
Number
X position.
y
Number
Y position.
z
Number
Z position.
Returns the distance between this entity and the specified position.
Last updated