EntityLivingBase
Usage
The only way to get an entity right now is through the following:
Or
Functions
getName
This will return a String containing the entity's name
getHealth
This will return a Number with the entity's current health
getMaxHealth
This will return a Number with the entity's max health
getPrevPosX
This will return a Number with the entity's previous position X value
getPrevPosY
This will return a Number with the entity's previous position Y value
getPrevPosZ
This will return a Number with the entity's previous position Z value
getPosX
This will return a Number with the entity's position X value
getPosY
This will return a Number with the entity's position Y value
getPosZ
This will return a Number with the entity's position Z value
getMotionX
This will return a Number with the entity's motion X value
getMotionY
This will return a Number with the entity's motion Y value
getMotionZ
This will return a Number with the entity's motion Z value
isOnGround
This will return True if the entity is on ground
isCollidedHorizontally
This will return True if the entity is is collided horizontally
isCollidedVertically
This will return True if the entity is is collided vertically
isCollided
This will return True if the entity is is collided
isOnLadder
This will return True if the entity is is on a ladder
getTotalArmorValue
Gets the total value of the armor the entity currently has on
getHeldItem
Returns an ItemStack object of the entity's currently held item
getHurtTime
This will return a Number counting down from 10 when an entity is damaged
getEquipmentInSlot
Returns an ItemStack
getRotationYawHead
Returns the yaw of the entity's head as a Number
getRotationPitchHead
Returns the pitch of the entity's head as a Number
getAbsorptionAmount
Returns the absorption amount of the entity as a Number
getUUID
Returns a UUID object. Returns null if UUID does not exist or cannot be found.
This will not work if the entity is not a Player. i.e a mob or animal
isMob
Returns True if the entity is a mob
isAnimal
Returns True if the entity is an animal
Last updated