Gets an ItemStack for the item in the given slot
For the player, slots are indexed with 1 as the main hand, 2 as the off hand, and 3,4,5,6 as the 4 armor slots from the boots to the helmet
If an invalid slot number is given, this will return nil 
EntityAPI.getItem(index: Integer): ItemStack | nil | Method Property | Fluent Description | Representation |
|---|---|---|
| index accepts | typings.-672261858||
| Return Value | typings.59683746
Returns the closest entity to this entity
If `type` is an entity id, (e.g. `minecraft:bee`), only entities of that type will be considered
Radius defaults to 20, and controls the size of the area for checking entities as a box expanding in every direction from the player 
EntityAPI.getNearestEntity(type: String, radius: Number): EntityAPI | Method Property | Fluent Description | Representation |
|---|---|---|
| type accepts | typings.-1808118735||
| radius accepts | typings.-1950496919||
| Return Value | typings.1263373079
EntityAPI.getNearestEntity(type: String): EntityAPI | Method Property | Fluent Description | Representation |
|---|---|---|
| type accepts | typings.-1808118735||
| Return Value | typings.1263373079
EntityAPI.getNearestEntity(): EntityAPI | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.1263373079
Gets the position of the entity in the world
If delta is passed in, then it will be used to linearly interpolate the position of the entity between the previous tick and the current tick
The default value of delta is 1 
EntityAPI.getPos(): Vector3 | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.2002444080
EntityAPI.getPos(delta: Number): Vector3 | Method Property | Fluent Description | Representation |
|---|---|---|
| delta accepts | typings.-1950496919||
| Return Value | typings.2002444080
Gets the rotation of the entity in degrees
If delta is passed in, then it will be used to linearly interpolate the rotation of the entity between the previous tick and the current tick
The default value of delta is 1 
EntityAPI.getRot(): Vector2 | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.2002444079
EntityAPI.getRot(delta: Number): Vector2 | Method Property | Fluent Description | Representation |
|---|---|---|
| delta accepts | typings.-1950496919||
| Return Value | typings.2002444079
Returns a proxy for your currently targeted BlockState
This BlockState appears on the F3 screen
The maximum (and default) distance is 20, minimum is -20
Returns the block, the hit position, and the targeted block face as three separate values 
EntityAPI.getTargetedBlock(): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.1901216868
EntityAPI.getTargetedBlock(ignoreLiquids: Boolean): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| ignoreLiquids accepts | typings.1729365000||
| Return Value | typings.1901216868
EntityAPI.getTargetedBlock(ignoreLiquids: Boolean, distance: Number): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| ignoreLiquids accepts | typings.1729365000||
| distance accepts | typings.-1950496919||
| Return Value | typings.1901216868
Returns a proxy for your currently targeted Entity
This Entity appears on the F3 screen
Maximum and Default distance is 20, Minimum is 0 
EntityAPI.getTargetedEntity(): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.1901216868
EntityAPI.getTargetedEntity(distance: Number): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| distance accepts | typings.-1950496919||
| Return Value | typings.1901216868
Gets the value of a variable this entity stored in themselves using the Avatar API's store() function 
EntityAPI.getVariable(): AnyType | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.821772070
EntityAPI.getVariable(key: String): AnyType | Method Property | Fluent Description | Representation |
|---|---|---|
| key accepts | typings.-1808118735||
| Return Value | typings.821772070
Checks if this entity object is still being updated and loaded
A non-loaded entity would be someone or something which is in another dimension or out of the render distance for example 
EntityAPI.isLoaded(): Boolean | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.1729365000
Returns true if this entity has some velocity
Takes a boolean parameter, where if true, the y velocity is ignored 
EntityAPI.isMoving(): Boolean | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.1729365000
EntityAPI.isMoving(ignoreY: Boolean): Boolean | Method Property | Fluent Description | Representation |
|---|---|---|
| ignoreY accepts | typings.1729365000||
| Return Value | typings.1729365000
listFiles
action_wheel
Action
BlockRaycastTypes