Appearance
EntityData
A typical EntityData object will have the following properties:
x: Number: Equal to the entity'sposX.y: Number: Equal to the entity'sposY.z: Number: Equal to the entity'sposZ.chunkCoordX: Number: Equal to the entity'schunkCoordX. (Read-only)chunkCoordY: Number: Equal to the entity'schunkCoordY. (Read-only)chunkCoordZ: Number: Equal to the entity'schunkCoordZ. (Read-only)motionX: Number: Equal to the entity'smotionX.motionY: Number: Equal to the entity'smotionY.motionZ: Number: Equal to the entity'smotionZ.yaw: Number: Equal to the entity'srotationYaw.pitch: Number: Equal to the entity'srotationPitch.isInWeb: Boolean: Equal to the entity'sisInWeb.isCollided: Boolean: Equal to the entity'sisCollided.isCollidedVertically: Boolean: Equal to the entity'sisCollidedVertically.isCollidedHorizontally: Boolean: Equal to the entity'sisCollidedHorizontally.onGround: Boolean: Equal to the entity'sonGround.dimension: Integer: Equal to the entity'sdimension. (Read-only)id: Integer: Equal to the entity'sentityId. (Read-only)fallDistance: Number: Equal to the entity'sfallDistance. (Read-only)noClip: Boolean: Equal to the entity'snoClip.stepHeight: Number: Equal to the entity'sstepHeight.isDead: Boolean: Equal to the entity'sisDead. (Read-only)inPortal: Boolean: Equal to the entity'sinPortal.inWater: Boolean: Equal to the entity'sinWater.isAirBorne: Boolean: Equal to the entity'sisAirBorne.ticksExisted: Integer: Equal to the entity'sticksExisted. (Read-only)invulnerable: Boolean: Equal to the entity'sinvulnerable.isImmuneToFire: Boolean: Equal to the entity'sisImmuneToFire.isOutsideBorder: Boolean: Equal to the entity'sisOutsideBorder.entityCollisionReduction: Number: Equal to the entity'sentityCollisionReduction.
It contains the following methods:
isBurning() : booleanisPushedByWater() : booleanisEating() : booleanisEntityAlive() : booleanisEntityInsideOpaqueBlock() : booleanisImmuneToExplosions() : booleanisImmuneToFire() : booleanisInLava() : booleanisInRangeToRender3d({x: number, y: number: z: number}) : booleanisInRangeToRenderDist({distance: number}) : booleanisInWater() : booleanisInvisible() : booleanisPushedByWater() : booleanisRiding() : booleanisSilent() : booleanisSneaking() : booleanisSprinting() : booleanisWet() : booleansetAir({air: integer}) : voidsetAlwaysRenderNameTag({alwaysRenderNameTag: boolean}) : voidsetAngles({yaw: number, pitch: number}) : voidsetBeenAttacked() : voidsetCustomNameTag({name: string}) : voidsetDead() : voidsetEating({eating: boolean}) : voidsetEntityId({id: integer}) : voidsetFire({seconds: integer}) : voidsetFlag({flag: integer, set: boolean}) : voidsetInWeb() : voidsetInvisible({invisible: boolean}) : voidsetLocationAndAngles({x: number, y: number, z: number, yaw: number, pitch: number}) : voidsetOnFireFromLava() : voidsetOutsideBorder({outsideBorder: boolean}) : voidsetPosition({x: number, y: number, z: number}) : voidsetPositionAndRotation({x: number, y: number, z: number, yaw: number, pitch: number}) : voidsetPositionAndRotation2({d0: number, d1: number, d2: number, f: number, f1: number, var9: integer, var10: boolean}) : voidsetPositionAndUpdate({d0: number, d1: number, d2: number}) : voidsetRotation({yaw: number, pitch: number}) : voidsetRotationYawHead({rotation: number}) : voidsetSilent({isSilent: boolean}) : voidsetSize({f: number, f1: number}) : voidsetSneaking({sneaking: boolean}) : voidsetSprinting({flag: boolean}) : voidsetVelocity({x: number, y: number, z: number}) : voidgetUUID() : stringgetAir() : integergetAlwaysRenderNameTag() : booleangetAlwaysRenderNameTagForRender() : booleangetBrightness({var1: number}) : numbergetBrightnessForRender({var1: number}) : integergetCollisionBorderSize() : numbergetCollisionBoundingBox() : [AxisAlignedBB](AxisAlignedBB.md)getCommandSenderEntity() : [EntityData](EntityData.md)getCustomNameTag() : stringgetDisplayName() : stringgetDisplayNameFormatted() : stringgetDistance({x: number, y: number, z: number}) : numbergetDistanceSq({x: number, y: number, z: number}) : numbergetMountedYOffset() : numbergetEntityId() : integergetEntityString() : stringgetEyeHeight() : numbergetFlag({flag: integer}) : booleangetMaxFallHeight() : integergetMaxInPortalTime() : integergetName() : stringgetParts() : [Array<EntityData>](EntityData.md)getPortalCooldown() : integergetRotationYawHead() : numbergetSplashSound() : stringgetSwimSound() : stringgetYOffset() : numbergetClassName() : stringgetPositionVector() : [Vec3](Vec3.md)getPositionEyes({partialTicks: number}) : [Vec3](Vec3.md)getLook({partialTicks: number}) : [Vec3](Vec3.md)getLookVec() : [Vec3](Vec3.md)getVectorForRotation({yaw: number, float: number}) : [Vec3](Vec3.md)toNBT() : StringfromNBT({nbt: String}) : void