Gets the yaw of this entity's body in degrees
If delta is passed in, then it will be used to linearly interpolate the rotation of the body between the previous tick and the current tick
The default value of delta is 1 
PlayerAPI.getBodyYaw(): Number | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.-1950496919
PlayerAPI.getBodyYaw(delta: Number): Number | Method Property | Fluent Description | Representation |
|---|---|---|
| delta accepts | typings.-1950496919||
| Return Value | typings.-1950496919
Returns the whether a given ItemStack has an active cool down as a percent from 0.0 to 1.0
If it has none, it returns 0.0
Takes two parameters stack, and delta, delta offsets the cooldown's tick count by it, used for smoother animation. 
PlayerAPI.getCooldownPercent(stack: ItemStack, delta: Number): Number | Method Property | Fluent Description | Representation |
|---|---|---|
| stack accepts | typings.-148280555||
| delta accepts | typings.-1950496919||
| Return Value | typings.-1950496919
Returns an ItemStack representing the item in this entity's main hand
If true is passed in for "offhand", then it will instead look at the item in the entity's offhand
If the entity isn't holding an item in that hand, returns air 
PlayerAPI.getHeldItem(): ItemStack | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.-148280555
PlayerAPI.getHeldItem(offhand: Boolean): ItemStack | Method Property | Fluent Description | Representation |
|---|---|---|
| offhand accepts | typings.1729365000||
| Return Value | typings.-148280555
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 
PlayerAPI.getItem(index: Integer): ItemStack | Method Property | Fluent Description | Representation |
|---|---|---|
| index accepts | typings.-672261858||
| Return Value | typings.-148280555
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 
PlayerAPI.getNearestEntity(type: String, radius: Number): EntityAPI | Method Property | Fluent Description | Representation |
|---|---|---|
| type accepts | typings.-1808118735||
| radius accepts | typings.-1950496919||
| Return Value | typings.1263373079
PlayerAPI.getNearestEntity(type: String): EntityAPI | Method Property | Fluent Description | Representation |
|---|---|---|
| type accepts | typings.-1808118735||
| Return Value | typings.1263373079
PlayerAPI.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 
PlayerAPI.getPos(): Vector3 | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.2002444080
PlayerAPI.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 
PlayerAPI.getRot(): Vector2 | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.2002444079
PlayerAPI.getRot(delta: Number): Vector2 | Method Property | Fluent Description | Representation |
|---|---|---|
| delta accepts | typings.-1950496919||
| Return Value | typings.2002444079
PlayerAPI.getShoulderEntity(): Table | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.80563118
PlayerAPI.getShoulderEntity(right: Boolean): Table | Method Property | Fluent Description | Representation |
|---|---|---|
| right accepts | typings.1729365000||
| Return Value | typings.80563118
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 
PlayerAPI.getTargetedBlock(): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.1901216868
PlayerAPI.getTargetedBlock(ignoreLiquids: Boolean): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| ignoreLiquids accepts | typings.1729365000||
| Return Value | typings.1901216868
PlayerAPI.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 
PlayerAPI.getTargetedEntity(): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.1901216868
PlayerAPI.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 
PlayerAPI.getVariable(): AnyType | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.821772070
PlayerAPI.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 
PlayerAPI.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 
PlayerAPI.isMoving(): Boolean | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.1729365000
PlayerAPI.isMoving(ignoreY: Boolean): Boolean | Method Property | Fluent Description | Representation |
|---|---|---|
| ignoreY accepts | typings.1729365000||
| Return Value | typings.1729365000
listFiles
action_wheel
Action
BlockRaycastTypes