Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.entity.Entity;

Implemented Interfaces

Link to implemented-interfaces

Entity implements the following interfaces. That means all methods defined in these interfaces are also available in Entity

Name: addTag

Return Type: boolean

ZenScript
Copy
Entity.addTag(tagName as string) as boolean
ParameterTypeDescription
Parameter
tagName
Type
string
Description
No Description Provided

Link to g--1

Name: blockPosition

Return Type: BlockPos

ZenScript
Copy
// Entity.blockPosition() as BlockPos

myEntity.blockPosition();

Link to g--2

Name: canBeCollidedWith

Return Type: boolean

ZenScript
Copy
// Entity.canBeCollidedWith() as boolean

myEntity.canBeCollidedWith();

Link to g--3

Name: canCollideWith

Return Type: boolean

ZenScript
Copy
Entity.canCollideWith(other as Entity) as boolean
ParameterTypeDescription
Parameter
other
Type
Entity
Description
No Description Provided

Link to g--4

Name: canFreeze

Return Type: boolean

ZenScript
Copy
// Entity.canFreeze() as boolean

myEntity.canFreeze();

Link to g--5

Name: clearFire

Return Type: void

ZenScript
Copy
// Entity.clearFire() as void

myEntity.clearFire();

Link to g--6

Name: closerThan

Return Type: boolean

ZenScript
Copy
Entity.closerThan(other as Entity, distance as double) as boolean
ParameterTypeDescription
Parameter
other
Type
Entity
Description
No Description Provided
Parameter
distance
Type
double
Description
No Description Provided

Name: discard

Return Type: void

ZenScript
Copy
// Entity.discard() as void

myEntity.discard();

Link to g--8

Name: distanceTo

Return Type: float

ZenScript
Copy
Entity.distanceTo(entity as Entity) as float
ParameterTypeDescription
Parameter
entity
Type
Entity
Description
No Description Provided

Link to g--9

Name: distanceToSqr

Return Type: double

ZenScript
Copy
Entity.distanceToSqr(entity as Entity) as double
ParameterTypeDescription
Parameter
entity
Type
Entity
Description
No Description Provided

Link to g--10

Name: distanceToSqr

Return Type: double

ZenScript
Copy
Entity.distanceToSqr(vec as Vec3) as double
ParameterTypeDescription
Parameter
vec
Type
Vec3
Description
No Description Provided

Link to g--11

Name: distanceToSqr

Return Type: double

ZenScript
Copy
Entity.distanceToSqr(x as double, y as double, z as double) as double
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided

Link to g--12

Name: ejectPassengers

Return Type: void

ZenScript
Copy
// Entity.ejectPassengers() as void

myEntity.ejectPassengers();

Link to g--13

Name: eyeBlockPosition

Return Type: BlockPos

ZenScript
Copy
// Entity.eyeBlockPosition() as BlockPos

myEntity.eyeBlockPosition();

Link to g--14

Name: fireImmune

Return Type: boolean

ZenScript
Copy
// Entity.fireImmune() as boolean

myEntity.fireImmune();

Link to g--15

Name: getAirSupply

Return Type: int

ZenScript
Copy
// Entity.getAirSupply() as int

myEntity.getAirSupply();

Link to g--16

Name: getAllSlots

Return Type: stdlib.Iterable<ItemStack>

ZenScript
Copy
// Entity.getAllSlots() as stdlib.Iterable<ItemStack>

myEntity.getAllSlots();

Link to g--17

Name: getArmorSlots

Return Type: stdlib.Iterable<ItemStack>

ZenScript
Copy
// Entity.getArmorSlots() as stdlib.Iterable<ItemStack>

myEntity.getArmorSlots();

Link to g--18

Name: getBbHeight

Return Type: float

ZenScript
Copy
// Entity.getBbHeight() as float

myEntity.getBbHeight();

Link to g--19

Name: getBbWidth

Return Type: float

ZenScript
Copy
// Entity.getBbWidth() as float

myEntity.getBbWidth();

Link to g--20

Name: getBlockX

Return Type: int

ZenScript
Copy
// Entity.getBlockX() as int

myEntity.getBlockX();

Link to g--21

Name: getBlockY

Return Type: int

ZenScript
Copy
// Entity.getBlockY() as int

myEntity.getBlockY();

Link to g--22

Name: getBlockZ

Return Type: int

ZenScript
Copy
// Entity.getBlockZ() as int

myEntity.getBlockZ();

Link to g--23

Name: getBoundingBoxForCulling

Return Type: AABB

ZenScript
Copy
// Entity.getBoundingBoxForCulling() as AABB

myEntity.getBoundingBoxForCulling();

Link to g--24

Name: getBrightness

Return Type: float

ZenScript
Copy
// Entity.getBrightness() as float

myEntity.getBrightness();

Link to g--25

Name: getCommandSenderWorld

Return Type: Level

ZenScript
Copy
// Entity.getCommandSenderWorld() as Level

myEntity.getCommandSenderWorld();

Link to g--26

Name: getControllingPassenger

Return Type: Entity

ZenScript
Copy
// Entity.getControllingPassenger() as Entity

myEntity.getControllingPassenger();

Link to g--27

Name: getCustomName

Return Type: Component

ZenScript
Copy
// Entity.getCustomName() as Component

myEntity.getCustomName();

Name: getData

Gets the NBT data of this Entity.

Returns: The NBT data of this Entity.
Return Type: MapData

ZenScript
Copy
// Entity.getData() as MapData

myEntity.getData();

Link to g--29

Name: getDimensionChangingDelay

Return Type: int

ZenScript
Copy
// Entity.getDimensionChangingDelay() as int

myEntity.getDimensionChangingDelay();

Link to g--30

Name: getDirection

Return Type: Direction

ZenScript
Copy
// Entity.getDirection() as Direction

myEntity.getDirection();

Link to g--31

Name: getDisplayName

Return Type: Component

ZenScript
Copy
// Entity.getDisplayName() as Component

myEntity.getDisplayName();

Link to g--32

Name: getEyeHeight

Return Type: float

ZenScript
Copy
// Entity.getEyeHeight() as float

myEntity.getEyeHeight();

Link to g--33

Name: getEyePosition

Return Type: Vec3

ZenScript
Copy
// Entity.getEyePosition() as Vec3

myEntity.getEyePosition();

Link to g--34

Name: getEyePosition

Return Type: Vec3

ZenScript
Copy
Entity.getEyePosition(partialTicks as float) as Vec3
ParameterTypeDescription
Parameter
partialTicks
Type
float
Description
No Description Provided

Name: getEyeY

Return Type: double

ZenScript
Copy
// Entity.getEyeY() as double

myEntity.getEyeY();

Link to g--36

Name: getFeetBlockState

Return Type: BlockState

ZenScript
Copy
// Entity.getFeetBlockState() as BlockState

myEntity.getFeetBlockState();

Link to g--37

Name: getFirstPassenger

Return Type: Entity

ZenScript
Copy
// Entity.getFirstPassenger() as Entity

myEntity.getFirstPassenger();

Link to g--38

Name: getFluidJumpThreshold

Return Type: double

ZenScript
Copy
// Entity.getFluidJumpThreshold() as double

myEntity.getFluidJumpThreshold();

Link to g--39

Name: getForward

Return Type: Vec3

ZenScript
Copy
// Entity.getForward() as Vec3

myEntity.getForward();

Link to g--40

Name: getHandSlots

Return Type: stdlib.Iterable<ItemStack>

ZenScript
Copy
// Entity.getHandSlots() as stdlib.Iterable<ItemStack>

myEntity.getHandSlots();

Name: getLevel

Return Type: Level

ZenScript
Copy
// Entity.getLevel() as Level

myEntity.getLevel();

Link to g--42

Name: getLookAngle

Return Type: Vec3

ZenScript
Copy
// Entity.getLookAngle() as Vec3

myEntity.getLookAngle();

Link to g--43

Name: getMaxAirSupply

Return Type: int

ZenScript
Copy
// Entity.getMaxAirSupply() as int

myEntity.getMaxAirSupply();

Link to g--44

Name: getMaxFallDistance

Return Type: int

ZenScript
Copy
// Entity.getMaxFallDistance() as int

myEntity.getMaxFallDistance();

Link to g--45

Name: getMotionDirection

Return Type: Direction

ZenScript
Copy
// Entity.getMotionDirection() as Direction

myEntity.getMotionDirection();

Name: getName

Return Type: Component

ZenScript
Copy
// Entity.getName() as Component

myEntity.getName();

Name: getOnPos

Return Type: BlockPos

ZenScript
Copy
// Entity.getOnPos() as BlockPos

myEntity.getOnPos();

Link to g--48

Name: getPassengers

Return Type: stdlib.List<Entity>

ZenScript
Copy
// Entity.getPassengers() as stdlib.List<Entity>

myEntity.getPassengers();

Link to g--49

Name: getPercentFrozen

Return Type: float

ZenScript
Copy
// Entity.getPercentFrozen() as float

myEntity.getPercentFrozen();

Link to g--50

Name: getPistonPushReaction

Return Type: PushReaction

ZenScript
Copy
// Entity.getPistonPushReaction() as PushReaction

myEntity.getPistonPushReaction();

Link to g--51

Name: getPortalWaitTime

Return Type: int

ZenScript
Copy
// Entity.getPortalWaitTime() as int

myEntity.getPortalWaitTime();

Link to g--52

Name: getPosition

Return Type: Vec3

ZenScript
Copy
Entity.getPosition(partialTicks as float) as Vec3
ParameterTypeDescription
Parameter
partialTicks
Type
float
Description
No Description Provided

Link to g--53

Name: getRemainingFireTicks

Return Type: int

ZenScript
Copy
// Entity.getRemainingFireTicks() as int

myEntity.getRemainingFireTicks();

Link to g--54

Name: getRootVehicle

Return Type: Entity

ZenScript
Copy
// Entity.getRootVehicle() as Entity

myEntity.getRootVehicle();

Link to g--55

Name: getSoundSource

Return Type: SoundSource

ZenScript
Copy
// Entity.getSoundSource() as SoundSource

myEntity.getSoundSource();

Link to g--56

Name: getStringUUID

Return Type: string

ZenScript
Copy
// Entity.getStringUUID() as string

myEntity.getStringUUID();

Name: getTags

Return Type: Set<string>

ZenScript
Copy
// Entity.getTags() as Set<string>

myEntity.getTags();

Link to g--58

Name: getTeamColor

Return Type: int

ZenScript
Copy
// Entity.getTeamColor() as int

myEntity.getTeamColor();

Link to g--59

Name: getTicksFrozen

Return Type: int

ZenScript
Copy
// Entity.getTicksFrozen() as int

myEntity.getTicksFrozen();

Link to g--60

Name: getTicksRequiredToFreeze

Return Type: int

ZenScript
Copy
// Entity.getTicksRequiredToFreeze() as int

myEntity.getTicksRequiredToFreeze();

Name: getType

Return Type: EntityType

ZenScript
Copy
// Entity.getType() as EntityType

myEntity.getType();

Link to g--62

Name: getUpVector

Return Type: Vec3

ZenScript
Copy
Entity.getUpVector(partialTicks as float) as Vec3
ParameterTypeDescription
Parameter
partialTicks
Type
float
Description
No Description Provided

Link to g--63

Name: getVehicle

Return Type: Entity

ZenScript
Copy
// Entity.getVehicle() as Entity

myEntity.getVehicle();

Link to g--64

Name: getViewVector

Return Type: Vec3

ZenScript
Copy
Entity.getViewVector(partialTicks as float) as Vec3
ParameterTypeDescription
Parameter
partialTicks
Type
float
Description
No Description Provided

Name: getX

Return Type: double

ZenScript
Copy
// Entity.getX() as double

myEntity.getX();

Name: getX

Return Type: double

ZenScript
Copy
Entity.getX(scale as double) as double
ParameterTypeDescription
Parameter
scale
Type
double
Description
No Description Provided

Name: getY

Return Type: double

ZenScript
Copy
// Entity.getY() as double

myEntity.getY();

Name: getY

Return Type: double

ZenScript
Copy
Entity.getY(scale as double) as double
ParameterTypeDescription
Parameter
scale
Type
double
Description
No Description Provided

Name: getZ

Return Type: double

ZenScript
Copy
// Entity.getZ() as double

myEntity.getZ();

Name: getZ

Return Type: double

ZenScript
Copy
Entity.getZ(scale as double) as double
ParameterTypeDescription
Parameter
scale
Type
double
Description
No Description Provided

Link to g--71

Name: hasCustomName

Return Type: boolean

ZenScript
Copy
// Entity.hasCustomName() as boolean

myEntity.hasCustomName();

Link to g--72

Name: hasExactlyOnePlayerPassenger

Return Type: boolean

ZenScript
Copy
// Entity.hasExactlyOnePlayerPassenger() as boolean

myEntity.hasExactlyOnePlayerPassenger();

Link to g--73

Name: hasGlowingTag

Return Type: boolean

ZenScript
Copy
// Entity.hasGlowingTag() as boolean

myEntity.hasGlowingTag();

Link to g--74

Name: hasIndirectPassenger

Return Type: boolean

ZenScript
Copy
Entity.hasIndirectPassenger(entity as Entity) as boolean
ParameterTypeDescription
Parameter
entity
Type
Entity
Description
No Description Provided

Link to g--75

Name: hasPassenger

Return Type: boolean

ZenScript
Copy
Entity.hasPassenger(entity as Entity) as boolean
ParameterTypeDescription
Parameter
entity
Type
Entity
Description
No Description Provided

Link to g--76

Name: hasPassenger

Return Type: boolean

ZenScript
Copy
Entity.hasPassenger(predicate as Predicate<Entity>) as boolean
ParameterTypeDescription
Parameter
predicate
Type
Predicate<Entity>
Description
No Description Provided

Name: hurt

Return Type: boolean

ZenScript
Copy
Entity.hurt(source as DamageSource, amount as float) as boolean
ParameterTypeDescription
Parameter
fuente
Type
DamageSource
Description
No Description Provided
Parameter
amount
Type
float
Description
No Description Provided

Name: isAlive

Return Type: boolean

ZenScript
Copy
// Entity.isAlive() as boolean

myEntity.isAlive();

Link to g--79

Name: isAttackable

Return Type: boolean

ZenScript
Copy
// Entity.isAttackable() as boolean

myEntity.isAttackable();

Link to g--80

Name: isColliding

Return Type: boolean

ZenScript
Copy
Entity.isColliding(pos as BlockPos, state as BlockState) as boolean
ParameterTypeDescription
Parameter
pos
Type
BlockPos
Description
No Description Provided
Parameter
state
Type
BlockState
Description
No Description Provided

Link to g--81

Name: isCrouching

Return Type: boolean

ZenScript
Copy
// Entity.isCrouching() as boolean

myEntity.isCrouching();

Link to g--82

Name: isCurrentlyGlowing

Return Type: boolean

ZenScript
Copy
// Entity.isCurrentlyGlowing() as boolean

myEntity.isCurrentlyGlowing();

Link to g--83

Name: isCustomNameVisible

Return Type: boolean

ZenScript
Copy
// Entity.isCustomNameVisible() as boolean

myEntity.isCustomNameVisible();

Link to g--84

Name: isDescending

Return Type: boolean

ZenScript
Copy
// Entity.isDescending() as boolean

myEntity.isDescending();

Link to g--85

Name: isDiscrete

Return Type: boolean

ZenScript
Copy
// Entity.isDiscrete() as boolean

myEntity.isDiscrete();

Name: isFree

Return Type: boolean

ZenScript
Copy
Entity.isFree(x as double, y as double, z as double) as boolean
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided

Link to g--87

Name: isFullyFrozen

Return Type: boolean

ZenScript
Copy
// Entity.isFullyFrozen() as boolean

myEntity.isFullyFrozen();

Name: isInLava

Return Type: boolean

ZenScript
Copy
// Entity.isInLava() as boolean

myEntity.isInLava();

Name: isInWall

Return Type: boolean

ZenScript
Copy
// Entity.isInWall() as boolean

myEntity.isInWall();

Link to g--90

Name: isInWater

Return Type: boolean

ZenScript
Copy
// Entity.isInWater() as boolean

myEntity.isInWater();

Link to g--91

Name: isInWaterOrBubble

Return Type: boolean

ZenScript
Copy
// Entity.isInWaterOrBubble() as boolean

myEntity.isInWaterOrBubble();

Link to g--92

Name: isInWaterOrRain

Return Type: boolean

ZenScript
Copy
// Entity.isInWaterOrRain() as boolean

myEntity.isInWaterOrRain();

Link to g--93

Name: isInWaterRainOrBubble

Return Type: boolean

ZenScript
Copy
// Entity.isInWaterRainOrBubble() as boolean

myEntity.isInWaterRainOrBubble();

Link to g--94

Name: isInvisible

Return Type: boolean

ZenScript
Copy
// Entity.isInvisible() as boolean

myEntity.isInvisible();

Link to g--95

Name: isInvisibleTo

Return Type: boolean

ZenScript
Copy
Entity.isInvisibleTo(player as Player) as boolean
ParameterTypeDescription
Parameter
player
Type
Player
Description
No Description Provided

Link to g--96

Name: isInvulnerable

Return Type: boolean

ZenScript
Copy
// Entity.isInvulnerable() as boolean

myEntity.isInvulnerable();

Link to g--97

Name: isInvulnerableTo

Return Type: boolean

ZenScript
Copy
Entity.isInvulnerableTo(source as DamageSource) as boolean
ParameterTypeDescription
Parameter
fuente
Type
DamageSource
Description
No Description Provided

Link to g--98

Name: isNoGravity

Return Type: boolean

ZenScript
Copy
// Entity.isNoGravity() as boolean

myEntity.isNoGravity();

Name: isOnFire

Return Type: boolean

ZenScript
Copy
// Entity.isOnFire() as boolean

myEntity.isOnFire();

Link to g--100

Name: isOnGround

Return Type: boolean

ZenScript
Copy
// Entity.isOnGround() as boolean

myEntity.isOnGround();

Link to g--101

Name: isOnPortalCooldown

Return Type: boolean

ZenScript
Copy
// Entity.isOnPortalCooldown() as boolean

myEntity.isOnPortalCooldown();

Link to g--102

Name: isPassenger

Return Type: boolean

ZenScript
Copy
// Entity.isPassenger() as boolean

myEntity.isPassenger();

Link to g--103

Name: isPassengerOfSameVehicle

Return Type: boolean

ZenScript
Copy
Entity.isPassengerOfSameVehicle(entity as Entity) as boolean
ParameterTypeDescription
Parameter
entity
Type
Entity
Description
No Description Provided

Link to g--104

Name: isPickable

Return Type: boolean

ZenScript
Copy
// Entity.isPickable() as boolean

myEntity.isPickable();

Link to g--105

Name: isPushable

Return Type: boolean

ZenScript
Copy
// Entity.isPushable() as boolean

myEntity.isPushable();

Link to g--106

Name: isPushedByFluid

Return Type: boolean

ZenScript
Copy
// Entity.isPushedByFluid() as boolean

myEntity.isPushedByFluid();

Name: isRemoved

Return Type: boolean

ZenScript
Copy
// Entity.isRemoved() as boolean

myEntity.isRemoved();

Link to g--108

Name: isShiftKeyDown

Return Type: boolean

ZenScript
Copy
// Entity.isShiftKeyDown() as boolean

myEntity.isShiftKeyDown();

Name: isSilent

Return Type: boolean

ZenScript
Copy
// Entity.isSilent() as boolean

myEntity.isSilent();

Link to g--110

Name: isSpectator

Return Type: boolean

ZenScript
Copy
// Entity.isSpectator() as boolean

myEntity.isSpectator();

Link to g--111

Name: isSprinting

Return Type: boolean

ZenScript
Copy
// Entity.isSprinting() as boolean

myEntity.isSprinting();

Link to g--112

Name: isSteppingCarefully

Return Type: boolean

ZenScript
Copy
// Entity.isSteppingCarefully() as boolean

myEntity.isSteppingCarefully();

Link to g--113

Name: isSuppressingBounce

Return Type: boolean

ZenScript
Copy
// Entity.isSuppressingBounce() as boolean

myEntity.isSuppressingBounce();

Link to g--114

Name: isSwimming

Return Type: boolean

ZenScript
Copy
// Entity.isSwimming() as boolean

myEntity.isSwimming();

Link to g--115

Name: isUnderWater

Return Type: boolean

ZenScript
Copy
// Entity.isUnderWater() as boolean

myEntity.isUnderWater();

Name: isVehicle

Return Type: boolean

ZenScript
Copy
// Entity.isVehicle() as boolean

myEntity.isVehicle();

Link to g--117

Name: isVisuallyCrawling

Return Type: boolean

ZenScript
Copy
// Entity.isVisuallyCrawling() as boolean

myEntity.isVisuallyCrawling();

Link to g--118

Name: isVisuallySwimming

Return Type: boolean

ZenScript
Copy
// Entity.isVisuallySwimming() as boolean

myEntity.isVisuallySwimming();

Name: kill

Return Type: void

ZenScript
Copy
// Entity.kill() as void

myEntity.kill();

Name: lavaHurt

Return Type: void

ZenScript
Copy
// Entity.lavaHurt() as void

myEntity.lavaHurt();

Link to g--121

Name: moveRelative

Return Type: void

ZenScript
Copy
Entity.moveRelative(amount as float, relative as Vec3) as void
ParameterTypeDescription
Parameter
amount
Type
float
Description
No Description Provided
Parameter
relative
Type
Vec3
Description
No Description Provided

Name: moveTo

Return Type: void

ZenScript
Copy
Entity.moveTo(vec as Vec3) as void
ParameterTypeDescription
Parameter
vec
Type
Vec3
Description
No Description Provided

Name: moveTo

Return Type: void

ZenScript
Copy
Entity.moveTo(pos as BlockPos, yaw as float, pitch as float) as void
ParameterTypeDescription
Parameter
pos
Type
BlockPos
Description
No Description Provided
Parameter
yaw
Type
float
Description
No Description Provided
Parameter
pitch
Type
float
Description
No Description Provided

Name: moveTo

Return Type: void

ZenScript
Copy
Entity.moveTo(x as double, y as double, z as double) as void
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided

Name: moveTo

Return Type: void

ZenScript
Copy
Entity.moveTo(x as double, y as double, z as double, yaw as float, pitch as float) as void
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided
Parameter
yaw
Type
float
Description
No Description Provided
Parameter
pitch
Type
float
Description
No Description Provided

Link to g--126

Name: occludesVibrations

Return Type: boolean

ZenScript
Copy
// Entity.occludesVibrations() as boolean

myEntity.occludesVibrations();

Name: playSound

Return Type: void

ZenScript
Copy
Entity.playSound(sound as SoundEvent, volume as float, pitch as float) as void
ParameterTypeDescription
Parameter
sound
Type
SoundEvent
Description
No Description Provided
Parameter
volume
Type
float
Description
No Description Provided
Parameter
pitch
Type
float
Description
No Description Provided

Name: position

Return Type: Vec3

ZenScript
Copy
// Entity.position() as Vec3

myEntity.position();

Link to g--129

Name: positionRider

Return Type: void

ZenScript
Copy
Entity.positionRider(entity as Entity) as void
ParameterTypeDescription
Parameter
entity
Type
Entity
Description
No Description Provided

Name: removeTag

Return Type: boolean

ZenScript
Copy
Entity.removeTag(tagName as string) as boolean
ParameterTypeDescription
Parameter
tagName
Type
string
Description
No Description Provided

Link to g--131

Name: removeVehicle

Return Type: void

ZenScript
Copy
// Entity.removeVehicle() as void

myEntity.removeVehicle();

Link to g--132

Name: rideableUnderWater

Return Type: boolean

ZenScript
Copy
// Entity.rideableUnderWater() as boolean

myEntity.rideableUnderWater();

Link to g--133

Name: sendMessage

Return Type: void

ZenScript
Copy
Entity.sendMessage(message as Component) as void
ParameterTypeDescription
Parameter
message
Type
Component
Description
No Description Provided

Link to g--134

Name: setAirSupply

Return Type: void

ZenScript
Copy
Entity.setAirSupply(air as int) as void
ParameterTypeDescription
Parameter
air
Type
int
Description
No Description Provided

Link to g--135

Name: setCustomName

Return Type: void

ZenScript
Copy
Entity.setCustomName(name as Component) as void
ParameterTypeDescription
Parameter
name
Type
Component
Description
No Description Provided

Link to g--136

Name: setCustomNameVisible

Return Type: void

ZenScript
Copy
Entity.setCustomNameVisible(visible as boolean) as void
ParameterTypeDescription
Parameter
visible
Type
boolean
Description
No Description Provided

Link to g--137

Name: setGlowingTag

Return Type: void

ZenScript
Copy
Entity.setGlowingTag(glowing as boolean) as void
ParameterTypeDescription
Parameter
glowing
Type
boolean
Description
No Description Provided

Link to g--138

Name: setInvisible

Return Type: void

ZenScript
Copy
Entity.setInvisible(invisible as boolean) as void
ParameterTypeDescription
Parameter
invisible
Type
boolean
Description
No Description Provided

Link to g--139

Name: setInvulnerable

Return Type: void

ZenScript
Copy
Entity.setInvulnerable(invulnerable as boolean) as void
ParameterTypeDescription
Parameter
invulnerable
Type
boolean
Description
No Description Provided

Link to g--140

Name: setIsInPowderSnow

Return Type: void

ZenScript
Copy
Entity.setIsInPowderSnow(inPowderSnow as boolean) as void
ParameterTypeDescription
Parameter
inPowderSnow
Type
boolean
Description
No Description Provided

Link to g--141

Name: setItemSlot

Return Type: void

ZenScript
Copy
Entity.setItemSlot(slot as EquipmentSlot, stack as ItemStack) as void
ParameterTypeDescription
Parameter
slot
Type
EquipmentSlot
Description
No Description Provided
Parameter
stack
Type
Pila de objetos
Description
No Description Provided

Link to g--142

Name: setNoGravity

Return Type: void

ZenScript
Copy
Entity.setNoGravity(noGravity as boolean) as void
ParameterTypeDescription
Parameter
noGravity
Type
boolean
Description
No Description Provided

Link to g--143

Name: setOldPosAndRot

Return Type: void

ZenScript
Copy
// Entity.setOldPosAndRot() as void

myEntity.setOldPosAndRot();

Link to g--144

Name: setOnGround

Return Type: void

ZenScript
Copy
Entity.setOnGround(onGround as boolean) as void
ParameterTypeDescription
Parameter
onGround
Type
boolean
Description
No Description Provided

Link to g--145

Name: setPortalCooldown

Return Type: void

ZenScript
Copy
// Entity.setPortalCooldown() as void

myEntity.setPortalCooldown();

Name: setPos

Return Type: void

ZenScript
Copy
Entity.setPos(position as Vec3) as void
ParameterTypeDescription
Parameter
position
Type
Vec3
Description
No Description Provided

Name: setPos

Return Type: void

ZenScript
Copy
Entity.setPos(x as double, y as double, z as double) as void
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided

Name: setPosRaw

Return Type: void

ZenScript
Copy
Entity.setPosRaw(x as double, y as double, z as double) as void
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided

Link to g--149

Name: setRemainingFireTicks

Return Type: void

ZenScript
Copy
Entity.setRemainingFireTicks(ticks as int) as void
ParameterTypeDescription
Parameter
ticks
Type
int
Description
No Description Provided

Link to g--150

Name: setSecondsOnFire

Return Type: void

ZenScript
Copy
Entity.setSecondsOnFire(seconds as int) as void
ParameterTypeDescription
Parameter
seconds
Type
int
Description
No Description Provided

Link to g--151

Name: setShiftKeyDown

Return Type: void

ZenScript
Copy
Entity.setShiftKeyDown(keyDown as boolean) as void
ParameterTypeDescription
Parameter
keyDown
Type
boolean
Description
No Description Provided

Name: setSilent

Return Type: void

ZenScript
Copy
Entity.setSilent(silent as boolean) as void
ParameterTypeDescription
Parameter
silent
Type
boolean
Description
No Description Provided

Link to g--153

Name: setSprinting

Return Type: void

ZenScript
Copy
Entity.setSprinting(sprinting as boolean) as void
ParameterTypeDescription
Parameter
sprinting
Type
boolean
Description
No Description Provided

Link to g--154

Name: setSwimming

Return Type: void

ZenScript
Copy
Entity.setSwimming(swimming as boolean) as void
ParameterTypeDescription
Parameter
swimming
Type
boolean
Description
No Description Provided

Link to g--155

Name: setTicksFrozen

Return Type: void

ZenScript
Copy
Entity.setTicksFrozen(ticks as int) as void
ParameterTypeDescription
Parameter
ticks
Type
int
Description
No Description Provided

Link to g--156

Name: shouldShowName

Return Type: boolean

ZenScript
Copy
// Entity.shouldShowName() as boolean

myEntity.shouldShowName();

Link to g--157

Name: showVehicleHealth

Return Type: boolean

ZenScript
Copy
// Entity.showVehicleHealth() as boolean

myEntity.showVehicleHealth();

Link to g--158

Name: startRiding

Return Type: boolean

ZenScript
Copy
Entity.startRiding(entity as Entity) as boolean
ParameterTypeDescription
Parameter
entity
Type
Entity
Description
No Description Provided

Link to g--159

Name: startRiding

Return Type: boolean

ZenScript
Copy
Entity.startRiding(entity as Entity, force as boolean) as boolean
ParameterTypeDescription
Parameter
entity
Type
Entity
Description
No Description Provided
Parameter
force
Type
boolean
Description
No Description Provided

Link to g--160

Name: stopRiding

Return Type: void

ZenScript
Copy
// Entity.stopRiding() as void

myEntity.stopRiding();

Link to g--161

Name: teleportTo

Return Type: void

ZenScript
Copy
Entity.teleportTo(x as double, y as double, z as double) as void
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided

Name: turn

Return Type: void

ZenScript
Copy
Entity.turn(yaw as double, pitch as double) as void
ParameterTypeDescription
Parameter
yaw
Type
double
Description
No Description Provided
Parameter
pitch
Type
double
Description
No Description Provided

Name: unRide

Return Type: void

ZenScript
Copy
// Entity.unRide() as void

myEntity.unRide();
NombreTypeHas GetterHas SetterDescription
Nombre
airSupply
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
allSlots
Type
stdlib.Iterable<ItemStack>
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
armorSlots
Type
stdlib.Iterable<ItemStack>
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
bbHeight
Type
float
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
bbWidth
Type
float
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
blockPosition
Type
BlockPos
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
blockX
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
blockY
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
blockZ
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
boundingBoxForCulling
Type
AABB
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
brightness
Type
float
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
canBeCollidedWith
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
canFreeze
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
commandSenderWorld
Type
Level
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
controllingPassenger
Type
Entity
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
customName
Type
Component
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
data
Type
MapData
Has Getter
true
Has Setter
false
Description
Gets the NBT data of this Entity.
Nombre
dimensionChangingDelay
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
direction
Type
Direction
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
displayName
Type
Component
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
eyeBlockPosition
Type
BlockPos
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
eyeHeight
Type
float
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
eyePosition
Type
Vec3
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
eyeY
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
feetBlockState
Type
BlockState
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
fireImmune
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
firstPassenger
Type
Entity
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
fluidJumpThreshold
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
forward
Type
Vec3
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
handSlots
Type
stdlib.Iterable<ItemStack>
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
hasCustomName
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
hasExactlyOnePlayerPassenger
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
hasGlowingTag
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isAlive
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isAttackable
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isCrouching
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isCurrentlyGlowing
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isCustomNameVisible
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isDescending
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isDiscrete
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isFullyFrozen
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isInLava
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isInWall
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isInWater
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isInWaterOrBubble
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isInWaterOrRain
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isInWaterRainOrBubble
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isInvisible
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isInvulnerable
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isNoGravity
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isOnFire
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isOnGround
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isOnPortalCooldown
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isPassenger
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isPickable
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isPushable
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isPushedByFluid
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isRemoved
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isShiftKeyDown
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isSilent
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isSpectator
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isSprinting
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isSteppingCarefully
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isSuppressingBounce
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isSwimming
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isUnderWater
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isVehicle
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isVisuallyCrawling
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
isVisuallySwimming
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
level
Type
Level
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
lookAngle
Type
Vec3
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
maxAirSupply
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
maxFallDistance
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
motionDirection
Type
Direction
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
name
Type
Component
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
occludesVibrations
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
onPos
Type
BlockPos
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
passengers
Type
stdlib.List<Entity>
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
percentFrozen
Type
float
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
pistonPushReaction
Type
PushReaction
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
portalWaitTime
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
position
Type
Vec3
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
remainingFireTicks
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
rideableUnderWater
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
rootVehicle
Type
Entity
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
shouldShowName
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
showVehicleHealth
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
soundSource
Type
SoundSource
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
stringUUID
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
tags
Type
Set<string>
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
teamColor
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
ticksFrozen
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
ticksRequiredToFreeze
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
type
Type
EntityType
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
vehicle
Type
Entity
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
x
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
y
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
z
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided