Importare la Classe

Link to importare-la-classe

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;

Extending CapabilityProvider<Entity>

Link to extending-capabilityproviderentity

Entity extends CapabilityProvider<Entity>. That means all methods available in CapabilityProvider<Entity> are also available in Entity

Interfacce Implementate

Link to interfacce-implementate

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
ParametroTipo
Parametro
tagName
Tipo
string

Name: blockPosition

Return Type: BlockPos

ZenScript
Copy
// Entity.blockPosition() as BlockPos

myEntity.blockPosition();

Link to canBeCollidedWith

Name: canBeCollidedWith

Return Type: boolean

ZenScript
Copy
// Entity.canBeCollidedWith() as boolean

myEntity.canBeCollidedWith();

Name: canCollideWith

Return Type: boolean

ZenScript
Copy
Entity.canCollideWith(other as Entity) as boolean
ParametroTipo
Parametro
other
Tipo
Entity

Name: canFreeze

Return Type: boolean

ZenScript
Copy
// Entity.canFreeze() as boolean

myEntity.canFreeze();

Name: clearFire

ZenScript
Copy
// Entity.clearFire()

myEntity.clearFire();

Name: closerThan

Return Type: boolean

ZenScript
Copy
Entity.closerThan(other as Entity, distance as double) as boolean
ParametroTipo
Parametro
other
Tipo
Entity
Parametro
distance
Tipo
double

Link to dampensVibrations

Name: dampensVibrations

Return Type: boolean

ZenScript
Copy
// Entity.dampensVibrations() as boolean

myEntity.dampensVibrations();

Name: discard

ZenScript
Copy
// Entity.discard()

myEntity.discard();

Name: distanceTo

Return Type: float

ZenScript
Copy
Entity.distanceTo(entity as Entity) as float
ParametroTipo
Parametro
entity
Tipo
Entity

Name: distanceToSqr

Return Type: double

ZenScript
Copy
Entity.distanceToSqr(entity as Entity) as double
ParametroTipo
Parametro
entity
Tipo
Entity

Name: distanceToSqr

Return Type: double

ZenScript
Copy
Entity.distanceToSqr(vec as Vec3) as double
ParametroTipo
Parametro
vec
Tipo
Vec3

Name: distanceToSqr

Return Type: double

ZenScript
Copy
Entity.distanceToSqr(x as double, y as double, z as double) as double
ParametroTipo
Parametro
x
Tipo
double
Parametro
y
Tipo
double
Parametro
z
Tipo
double

Name: ejectPassengers

ZenScript
Copy
// Entity.ejectPassengers()

myEntity.ejectPassengers();

Name: fireImmune

Return Type: boolean

ZenScript
Copy
// Entity.fireImmune() as boolean

myEntity.fireImmune();

Name: getAirSupply

Return Type: int

ZenScript
Copy
// Entity.getAirSupply() as int

myEntity.getAirSupply();

Name: getAllSlots

Return Type: stdlib.Iterable<ItemStack>

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

myEntity.getAllSlots();

Name: getArmorSlots

Return Type: stdlib.Iterable<ItemStack>

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

myEntity.getArmorSlots();

Name: getBbHeight

Return Type: float

ZenScript
Copy
// Entity.getBbHeight() as float

myEntity.getBbHeight();

Name: getBbWidth

Return Type: float

ZenScript
Copy
// Entity.getBbWidth() as float

myEntity.getBbWidth();

Name: getBlockX

Return Type: int

ZenScript
Copy
// Entity.getBlockX() as int

myEntity.getBlockX();

Name: getBlockY

Return Type: int

ZenScript
Copy
// Entity.getBlockY() as int

myEntity.getBlockY();

Name: getBlockZ

Return Type: int

ZenScript
Copy
// Entity.getBlockZ() as int

myEntity.getBlockZ();

Link to getBoundingBoxForCulling

Name: getBoundingBoxForCulling

Return Type: AABB

ZenScript
Copy
// Entity.getBoundingBoxForCulling() as AABB

myEntity.getBoundingBoxForCulling();

Link to getCommandSenderWorld

Name: getCommandSenderWorld

Return Type: Level

ZenScript
Copy
// Entity.getCommandSenderWorld() as Level

myEntity.getCommandSenderWorld();

Link to getControllingPassenger

Name: getControllingPassenger

Return Type: Entity?

ZenScript
Copy
// Entity.getControllingPassenger() as Entity?

myEntity.getControllingPassenger();

Name: getCustomData

Gets the custom NBT data for this Entity.

Returns: The custom data for this Entity.
Return Type: MapData

ZenScript
Copy
// Entity.getCustomData() as MapData

myEntity.getCustomData();

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 getDeltaMovement

Name: getDeltaMovement

Return Type: Vec3

ZenScript
Copy
// Entity.getDeltaMovement() as Vec3

myEntity.getDeltaMovement();

Link to getDimensionChangingDelay

Name: getDimensionChangingDelay

Return Type: int

ZenScript
Copy
// Entity.getDimensionChangingDelay() as int

myEntity.getDimensionChangingDelay();

Name: getDirection

Return Type: Direction

ZenScript
Copy
// Entity.getDirection() as Direction

myEntity.getDirection();

Name: getDisplayName

Return Type: Component

ZenScript
Copy
// Entity.getDisplayName() as Component

myEntity.getDisplayName();

Name: getEyeHeight

Return Type: float

ZenScript
Copy
// Entity.getEyeHeight() as float

myEntity.getEyeHeight();

Name: getEyePosition

Return Type: Vec3

ZenScript
Copy
// Entity.getEyePosition() as Vec3

myEntity.getEyePosition();

Name: getEyePosition

Return Type: Vec3

ZenScript
Copy
Entity.getEyePosition(partialTicks as float) as Vec3
ParametroTipo
Parametro
partialTicks
Tipo
float

Name: getEyeY

Return Type: double

ZenScript
Copy
// Entity.getEyeY() as double

myEntity.getEyeY();

Link to getFeetBlockState

Name: getFeetBlockState

Return Type: BlockState

ZenScript
Copy
// Entity.getFeetBlockState() as BlockState

myEntity.getFeetBlockState();

Link to getFirstPassenger

Name: getFirstPassenger

Return Type: Entity?

ZenScript
Copy
// Entity.getFirstPassenger() as Entity?

myEntity.getFirstPassenger();

Link to getFluidJumpThreshold

Name: getFluidJumpThreshold

Return Type: double

ZenScript
Copy
// Entity.getFluidJumpThreshold() as double

myEntity.getFluidJumpThreshold();

Name: getForward

Return Type: Vec3

ZenScript
Copy
// Entity.getForward() as Vec3

myEntity.getForward();

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();

Name: getLookAngle

Return Type: Vec3

ZenScript
Copy
// Entity.getLookAngle() as Vec3

myEntity.getLookAngle();

Name: getMaxAirSupply

Return Type: int

ZenScript
Copy
// Entity.getMaxAirSupply() as int

myEntity.getMaxAirSupply();

Link to getMaxFallDistance

Name: getMaxFallDistance

Return Type: int

ZenScript
Copy
// Entity.getMaxFallDistance() as int

myEntity.getMaxFallDistance();

Link to getMotionDirection

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();

Name: getPassengers

Return Type: stdlib.List<Entity>

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

myEntity.getPassengers();

Link to getPercentFrozen

Name: getPercentFrozen

Return Type: float

ZenScript
Copy
// Entity.getPercentFrozen() as float

myEntity.getPercentFrozen();

Link to getPistonPushReaction

Name: getPistonPushReaction

Return Type: PushReaction

ZenScript
Copy
// Entity.getPistonPushReaction() as PushReaction

myEntity.getPistonPushReaction();

Link to getPortalWaitTime

Name: getPortalWaitTime

Return Type: int

ZenScript
Copy
// Entity.getPortalWaitTime() as int

myEntity.getPortalWaitTime();

Name: getPosition

Return Type: Vec3

ZenScript
Copy
Entity.getPosition(partialTicks as float) as Vec3
ParametroTipo
Parametro
partialTicks
Tipo
float

Name: getRegistryName

Return Type: ResourceLocation

ZenScript
Copy
// Entity.getRegistryName() as ResourceLocation

myEntity.getRegistryName();

Link to getRemainingFireTicks

Name: getRemainingFireTicks

Return Type: int

ZenScript
Copy
// Entity.getRemainingFireTicks() as int

myEntity.getRemainingFireTicks();

Name: getRootVehicle

Return Type: Entity

ZenScript
Copy
// Entity.getRootVehicle() as Entity

myEntity.getRootVehicle();

Name: getSoundSource

Return Type: SoundSource

ZenScript
Copy
// Entity.getSoundSource() as SoundSource

myEntity.getSoundSource();

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();

Name: getTeamColor

Return Type: int

ZenScript
Copy
// Entity.getTeamColor() as int

myEntity.getTeamColor();

Name: getTicksFrozen

Return Type: int

ZenScript
Copy
// Entity.getTicksFrozen() as int

myEntity.getTicksFrozen();

Link to getTicksRequiredToFreeze

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();

Name: getUpVector

Return Type: Vec3

ZenScript
Copy
Entity.getUpVector(partialTicks as float) as Vec3
ParametroTipo
Parametro
partialTicks
Tipo
float

Name: getVehicle

Return Type: Entity?

ZenScript
Copy
// Entity.getVehicle() as Entity?

myEntity.getVehicle();

Name: getViewVector

Return Type: Vec3

ZenScript
Copy
Entity.getViewVector(partialTicks as float) as Vec3
ParametroTipo
Parametro
partialTicks
Tipo
float

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
ParametroTipo
Parametro
scale
Tipo
double

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
ParametroTipo
Parametro
scale
Tipo
double

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
ParametroTipo
Parametro
scale
Tipo
double

Name: hasCustomName

Return Type: boolean

ZenScript
Copy
// Entity.hasCustomName() as boolean

myEntity.hasCustomName();

Link to hasExactlyOnePlayerPassenger

Name: hasExactlyOnePlayerPassenger

Return Type: boolean

ZenScript
Copy
// Entity.hasExactlyOnePlayerPassenger() as boolean

myEntity.hasExactlyOnePlayerPassenger();

Name: hasGlowingTag

Return Type: boolean

ZenScript
Copy
// Entity.hasGlowingTag() as boolean

myEntity.hasGlowingTag();

Link to hasIndirectPassenger

Name: hasIndirectPassenger

Return Type: boolean

ZenScript
Copy
Entity.hasIndirectPassenger(entity as Entity) as boolean
ParametroTipo
Parametro
entity
Tipo
Entity

Name: hasPassenger

Return Type: boolean

ZenScript
Copy
Entity.hasPassenger(entity as Entity) as boolean
ParametroTipo
Parametro
entity
Tipo
Entity

Name: hasPassenger

Return Type: boolean

ZenScript
Copy
Entity.hasPassenger(predicate as Predicate<Entity>) as boolean
ParametroTipo
Parametro
predicate
Tipo
Predicate<Entity>

Name: hurt

Return Type: boolean

ZenScript
Copy
Entity.hurt(source as DamageSource, amount as float) as boolean
ParametroTipo
Parametro
sorgente
Tipo
DamageSource
Parametro
amount
Tipo
float

Name: isAlive

Return Type: boolean

ZenScript
Copy
// Entity.isAlive() as boolean

myEntity.isAlive();

Name: isAttackable

Return Type: boolean

ZenScript
Copy
// Entity.isAttackable() as boolean

myEntity.isAttackable();

Name: isColliding

Return Type: boolean

ZenScript
Copy
Entity.isColliding(pos as BlockPos, state as BlockState) as boolean
ParametroTipo
Parametro
pos
Tipo
BlockPos
Parametro
state
Tipo
BlockState

Name: isCrouching

Return Type: boolean

ZenScript
Copy
// Entity.isCrouching() as boolean

myEntity.isCrouching();

Link to isCurrentlyGlowing

Name: isCurrentlyGlowing

Return Type: boolean

ZenScript
Copy
// Entity.isCurrentlyGlowing() as boolean

myEntity.isCurrentlyGlowing();

Link to isCustomNameVisible

Name: isCustomNameVisible

Return Type: boolean

ZenScript
Copy
// Entity.isCustomNameVisible() as boolean

myEntity.isCustomNameVisible();

Name: isDescending

Return Type: boolean

ZenScript
Copy
// Entity.isDescending() as boolean

myEntity.isDescending();

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
ParametroTipo
Parametro
x
Tipo
double
Parametro
y
Tipo
double
Parametro
z
Tipo
double

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();

Name: isInWater

Return Type: boolean

ZenScript
Copy
// Entity.isInWater() as boolean

myEntity.isInWater();

Link to isInWaterOrBubble

Name: isInWaterOrBubble

Return Type: boolean

ZenScript
Copy
// Entity.isInWaterOrBubble() as boolean

myEntity.isInWaterOrBubble();

Name: isInWaterOrRain

Return Type: boolean

ZenScript
Copy
// Entity.isInWaterOrRain() as boolean

myEntity.isInWaterOrRain();

Link to isInWaterRainOrBubble

Name: isInWaterRainOrBubble

Return Type: boolean

ZenScript
Copy
// Entity.isInWaterRainOrBubble() as boolean

myEntity.isInWaterRainOrBubble();

Name: isInvisible

Return Type: boolean

ZenScript
Copy
// Entity.isInvisible() as boolean

myEntity.isInvisible();

Name: isInvisibleTo

Return Type: boolean

ZenScript
Copy
Entity.isInvisibleTo(player as Player) as boolean
ParametroTipo
Parametro
player
Tipo
Player

Name: isInvulnerable

Return Type: boolean

ZenScript
Copy
// Entity.isInvulnerable() as boolean

myEntity.isInvulnerable();

Link to isInvulnerableTo

Name: isInvulnerableTo

Return Type: boolean

ZenScript
Copy
Entity.isInvulnerableTo(source as DamageSource) as boolean
ParametroTipo
Parametro
sorgente
Tipo
DamageSource

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();

Name: isOnGround

Return Type: boolean

ZenScript
Copy
// Entity.isOnGround() as boolean

myEntity.isOnGround();

Link to isOnPortalCooldown

Name: isOnPortalCooldown

Return Type: boolean

ZenScript
Copy
// Entity.isOnPortalCooldown() as boolean

myEntity.isOnPortalCooldown();

Name: isPassenger

Return Type: boolean

ZenScript
Copy
// Entity.isPassenger() as boolean

myEntity.isPassenger();

Link to isPassengerOfSameVehicle

Name: isPassengerOfSameVehicle

Return Type: boolean

ZenScript
Copy
Entity.isPassengerOfSameVehicle(entity as Entity) as boolean
ParametroTipo
Parametro
entity
Tipo
Entity

Name: isPickable

Return Type: boolean

ZenScript
Copy
// Entity.isPickable() as boolean

myEntity.isPickable();

Name: isPushable

Return Type: boolean

ZenScript
Copy
// Entity.isPushable() as boolean

myEntity.isPushable();

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();

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();

Name: isSpectator

Return Type: boolean

ZenScript
Copy
// Entity.isSpectator() as boolean

myEntity.isSpectator();

Name: isSprinting

Return Type: boolean

ZenScript
Copy
// Entity.isSprinting() as boolean

myEntity.isSprinting();

Link to isSteppingCarefully

Name: isSteppingCarefully

Return Type: boolean

ZenScript
Copy
// Entity.isSteppingCarefully() as boolean

myEntity.isSteppingCarefully();

Link to isSuppressingBounce

Name: isSuppressingBounce

Return Type: boolean

ZenScript
Copy
// Entity.isSuppressingBounce() as boolean

myEntity.isSuppressingBounce();

Name: isSwimming

Return Type: boolean

ZenScript
Copy
// Entity.isSwimming() as boolean

myEntity.isSwimming();

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 isVisuallyCrawling

Name: isVisuallyCrawling

Return Type: boolean

ZenScript
Copy
// Entity.isVisuallyCrawling() as boolean

myEntity.isVisuallyCrawling();

Link to isVisuallySwimming

Name: isVisuallySwimming

Return Type: boolean

ZenScript
Copy
// Entity.isVisuallySwimming() as boolean

myEntity.isVisuallySwimming();

Name: kill

ZenScript
Copy
// Entity.kill()

myEntity.kill();

Name: lavaHurt

ZenScript
Copy
// Entity.lavaHurt()

myEntity.lavaHurt();

Name: moveRelative

ZenScript
Copy
Entity.moveRelative(amount as float, relative as Vec3)
ParametroTipo
Parametro
amount
Tipo
float
Parametro
relative
Tipo
Vec3

Name: moveTo

ZenScript
Copy
Entity.moveTo(vec as Vec3)
ParametroTipo
Parametro
vec
Tipo
Vec3

Name: moveTo

ZenScript
Copy
Entity.moveTo(pos as BlockPos, yaw as float, pitch as float)
ParametroTipo
Parametro
pos
Tipo
BlockPos
Parametro
yaw
Tipo
float
Parametro
pitch
Tipo
float

Name: moveTo

ZenScript
Copy
Entity.moveTo(x as double, y as double, z as double)
ParametroTipo
Parametro
x
Tipo
double
Parametro
y
Tipo
double
Parametro
z
Tipo
double

Name: moveTo

ZenScript
Copy
Entity.moveTo(x as double, y as double, z as double, yaw as float, pitch as float)
ParametroTipo
Parametro
x
Tipo
double
Parametro
y
Tipo
double
Parametro
z
Tipo
double
Parametro
yaw
Tipo
float
Parametro
pitch
Tipo
float

Name: playSound

ZenScript
Copy
Entity.playSound(sound as SoundEvent, volume as float, pitch as float)
ParametroTipo
Parametro
sound
Tipo
SoundEvent
Parametro
volume
Tipo
float
Parametro
pitch
Tipo
float

Name: position

Return Type: Vec3

ZenScript
Copy
// Entity.position() as Vec3

myEntity.position();

Name: positionRider

ZenScript
Copy
Entity.positionRider(entity as Entity)
ParametroTipo
Parametro
entity
Tipo
Entity

Name: removeTag

Return Type: boolean

ZenScript
Copy
Entity.removeTag(tagName as string) as boolean
ParametroTipo
Parametro
tagName
Tipo
string

Name: removeVehicle

ZenScript
Copy
// Entity.removeVehicle()

myEntity.removeVehicle();

Link to rideableUnderWater

Name: rideableUnderWater

Return Type: boolean

ZenScript
Copy
// Entity.rideableUnderWater() as boolean

myEntity.rideableUnderWater();

Name: setAirSupply

ZenScript
Copy
Entity.setAirSupply(air as int)
ParametroTipo
Parametro
air
Tipo
int

Name: setCustomName

ZenScript
Copy
Entity.setCustomName(name as Component?)
ParametroTipo
Parametro
nome
Tipo
Component?

Link to setCustomNameVisible

Name: setCustomNameVisible

ZenScript
Copy
Entity.setCustomNameVisible(visible as boolean)
ParametroTipo
Parametro
visible
Tipo
boolean

Link to setDeltaMovement

Name: setDeltaMovement

ZenScript
Copy
Entity.setDeltaMovement(deltaMovement as Vec3)
ParametroTipo
Parametro
deltaMovement
Tipo
Vec3

Link to setDeltaMovement

Name: setDeltaMovement

ZenScript
Copy
Entity.setDeltaMovement(xDelta as double, yDelta as double, zDelta as double)
ParametroTipo
Parametro
xDelta
Tipo
double
Parametro
yDelta
Tipo
double
Parametro
zDelta
Tipo
double

Name: setGlowingTag

ZenScript
Copy
Entity.setGlowingTag(glowing as boolean)
ParametroTipo
Parametro
glowing
Tipo
boolean

Name: setInvisible

ZenScript
Copy
Entity.setInvisible(invisible as boolean)
ParametroTipo
Parametro
invisible
Tipo
boolean

Name: setInvulnerable

ZenScript
Copy
Entity.setInvulnerable(invulnerable as boolean)
ParametroTipo
Parametro
invulnerable
Tipo
boolean

Link to setIsInPowderSnow

Name: setIsInPowderSnow

ZenScript
Copy
Entity.setIsInPowderSnow(inPowderSnow as boolean)
ParametroTipo
Parametro
inPowderSnow
Tipo
boolean

Name: setItemSlot

ZenScript
Copy
Entity.setItemSlot(slot as EquipmentSlot, stack as ItemStack)
ParametroTipo
Parametro
slot
Tipo
EquipmentSlot
Parametro
stack
Tipo
ItemStack

Name: setNoGravity

ZenScript
Copy
Entity.setNoGravity(noGravity as boolean)
ParametroTipo
Parametro
noGravity
Tipo
boolean

Name: setOldPosAndRot

ZenScript
Copy
// Entity.setOldPosAndRot()

myEntity.setOldPosAndRot();

Name: setOnGround

ZenScript
Copy
Entity.setOnGround(onGround as boolean)
ParametroTipo
Parametro
onGround
Tipo
boolean

Link to setPortalCooldown

Name: setPortalCooldown

ZenScript
Copy
// Entity.setPortalCooldown()

myEntity.setPortalCooldown();

Name: setPos

ZenScript
Copy
Entity.setPos(position as Vec3)
ParametroTipo
Parametro
position
Tipo
Vec3

Name: setPos

ZenScript
Copy
Entity.setPos(x as double, y as double, z as double)
ParametroTipo
Parametro
x
Tipo
double
Parametro
y
Tipo
double
Parametro
z
Tipo
double

Name: setPosRaw

ZenScript
Copy
Entity.setPosRaw(x as double, y as double, z as double)
ParametroTipo
Parametro
x
Tipo
double
Parametro
y
Tipo
double
Parametro
z
Tipo
double

Link to setRemainingFireTicks

Name: setRemainingFireTicks

ZenScript
Copy
Entity.setRemainingFireTicks(ticks as int)
ParametroTipo
Parametro
ticks
Tipo
int

Link to setSecondsOnFire

Name: setSecondsOnFire

ZenScript
Copy
Entity.setSecondsOnFire(seconds as int)
ParametroTipo
Parametro
seconds
Tipo
int

Name: setShiftKeyDown

ZenScript
Copy
Entity.setShiftKeyDown(keyDown as boolean)
ParametroTipo
Parametro
keyDown
Tipo
boolean

Name: setSilent

ZenScript
Copy
Entity.setSilent(silent as boolean)
ParametroTipo
Parametro
silent
Tipo
boolean

Name: setSprinting

ZenScript
Copy
Entity.setSprinting(sprinting as boolean)
ParametroTipo
Parametro
sprinting
Tipo
boolean

Name: setSwimming

ZenScript
Copy
Entity.setSwimming(swimming as boolean)
ParametroTipo
Parametro
swimming
Tipo
boolean

Name: setTicksFrozen

ZenScript
Copy
Entity.setTicksFrozen(ticks as int)
ParametroTipo
Parametro
ticks
Tipo
int

Name: shouldShowName

Return Type: boolean

ZenScript
Copy
// Entity.shouldShowName() as boolean

myEntity.shouldShowName();

Link to showVehicleHealth

Name: showVehicleHealth

Return Type: boolean

ZenScript
Copy
// Entity.showVehicleHealth() as boolean

myEntity.showVehicleHealth();

Name: startRiding

Return Type: boolean

ZenScript
Copy
Entity.startRiding(entity as Entity) as boolean
ParametroTipo
Parametro
entity
Tipo
Entity

Name: startRiding

Return Type: boolean

ZenScript
Copy
Entity.startRiding(entity as Entity, force as boolean) as boolean
ParametroTipo
Parametro
entity
Tipo
Entity
Parametro
force
Tipo
boolean

Name: stopRiding

ZenScript
Copy
// Entity.stopRiding()

myEntity.stopRiding();

Name: teleportTo

ZenScript
Copy
Entity.teleportTo(x as double, y as double, z as double)
ParametroTipo
Parametro
x
Tipo
double
Parametro
y
Tipo
double
Parametro
z
Tipo
double

Name: turn

ZenScript
Copy
Entity.turn(yaw as double, pitch as double)
ParametroTipo
Parametro
yaw
Tipo
double
Parametro
pitch
Tipo
double

Name: unRide

ZenScript
Copy
// Entity.unRide()

myEntity.unRide();

Link to updateCustomData

Name: updateCustomData

Updates the custom NBT data for this Entity.

ZenScript
Copy
// Entity.updateCustomData(data as MapData)

myEntity.updateCustomData({custom: "data"});
ParametroTipoDescrizione
Parametro
data
Tipo
MapData
Descrizione
The custom data to store.

Name: updateData

Updates the NBT data of this Entity.

ZenScript
Copy
// Entity.updateData(data as MapData)

myEntity.updateData({key: "value"});
ParametroTipoDescrizione
Parametro
data
Tipo
MapData
Descrizione
The new Data for this Entity
NomeTipoHa GetterHa SetterDescrizione
Nome
airSupply
Tipo
int
Ha Getter
Ha Setter
no
Descrizione
Nome
allSlots
Tipo
stdlib.Iterable<ItemStack>
Ha Getter
Ha Setter
no
Descrizione
Nome
armorSlots
Tipo
stdlib.Iterable<ItemStack>
Ha Getter
Ha Setter
no
Descrizione
Nome
bbHeight
Tipo
float
Ha Getter
Ha Setter
no
Descrizione
Nome
bbWidth
Tipo
float
Ha Getter
Ha Setter
no
Descrizione
Nome
blockPosition
Tipo
BlockPos
Ha Getter
Ha Setter
no
Descrizione
Nome
blockX
Tipo
int
Ha Getter
Ha Setter
no
Descrizione
Nome
blockY
Tipo
int
Ha Getter
Ha Setter
no
Descrizione
Nome
blockZ
Tipo
int
Ha Getter
Ha Setter
no
Descrizione
Nome
boundingBoxForCulling
Tipo
AABB
Ha Getter
Ha Setter
no
Descrizione
Nome
canBeCollidedWith
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
canFreeze
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
commandSenderWorld
Tipo
Level
Ha Getter
Ha Setter
no
Descrizione
Nome
controllingPassenger
Tipo
Entity?
Ha Getter
Ha Setter
no
Descrizione
Nome
customData
Tipo
MapData
Ha Getter
Ha Setter
no
Descrizione
Gets the custom NBT data for this Entity.
Nome
customName
Tipo
Component?
Ha Getter
Ha Setter
no
Descrizione
Nome
dampensVibrations
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
data
Tipo
MapData
Ha Getter
Ha Setter
no
Descrizione
Gets the NBT data of this Entity.
Nome
deltaMovement
Tipo
Vec3
Ha Getter
Ha Setter
Descrizione
Nome
dimensionChangingDelay
Tipo
int
Ha Getter
Ha Setter
no
Descrizione
Nome
direction
Tipo
Direction
Ha Getter
Ha Setter
no
Descrizione
Nome
displayName
Tipo
Component
Ha Getter
Ha Setter
no
Descrizione
Nome
eyeHeight
Tipo
float
Ha Getter
Ha Setter
no
Descrizione
Nome
eyePosition
Tipo
Vec3
Ha Getter
Ha Setter
no
Descrizione
Nome
eyeY
Tipo
double
Ha Getter
Ha Setter
no
Descrizione
Nome
feetBlockState
Tipo
BlockState
Ha Getter
Ha Setter
no
Descrizione
Nome
fireImmune
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
firstPassenger
Tipo
Entity?
Ha Getter
Ha Setter
no
Descrizione
Nome
fluidJumpThreshold
Tipo
double
Ha Getter
Ha Setter
no
Descrizione
Nome
forward
Tipo
Vec3
Ha Getter
Ha Setter
no
Descrizione
Nome
handSlots
Tipo
stdlib.Iterable<ItemStack>
Ha Getter
Ha Setter
no
Descrizione
Nome
hasCustomName
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
hasExactlyOnePlayerPassenger
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
hasGlowingTag
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isAlive
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isAttackable
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isCrouching
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isCurrentlyGlowing
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isCustomNameVisible
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isDescending
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isDiscrete
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isFullyFrozen
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isInLava
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isInWall
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isInWater
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isInWaterOrBubble
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isInWaterOrRain
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isInWaterRainOrBubble
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isInvisible
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isInvulnerable
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isNoGravity
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isOnFire
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isOnGround
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isOnPortalCooldown
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isPassenger
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isPickable
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isPushable
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isPushedByFluid
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isRemoved
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isShiftKeyDown
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isSilent
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isSpectator
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isSprinting
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isSteppingCarefully
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isSuppressingBounce
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isSwimming
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isUnderWater
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isVehicle
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isVisuallyCrawling
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
isVisuallySwimming
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
level
Tipo
Level
Ha Getter
Ha Setter
no
Descrizione
Nome
lookAngle
Tipo
Vec3
Ha Getter
Ha Setter
no
Descrizione
Nome
maxAirSupply
Tipo
int
Ha Getter
Ha Setter
no
Descrizione
Nome
maxFallDistance
Tipo
int
Ha Getter
Ha Setter
no
Descrizione
Nome
motionDirection
Tipo
Direction
Ha Getter
Ha Setter
no
Descrizione
Nome
nome
Tipo
Component
Ha Getter
Ha Setter
no
Descrizione
Nome
onPos
Tipo
BlockPos
Ha Getter
Ha Setter
no
Descrizione
Nome
passengers
Tipo
stdlib.List<Entity>
Ha Getter
Ha Setter
no
Descrizione
Nome
percentFrozen
Tipo
float
Ha Getter
Ha Setter
no
Descrizione
Nome
pistonPushReaction
Tipo
PushReaction
Ha Getter
Ha Setter
no
Descrizione
Nome
portalWaitTime
Tipo
int
Ha Getter
Ha Setter
no
Descrizione
Nome
position
Tipo
Vec3
Ha Getter
Ha Setter
no
Descrizione
Nome
registryName
Tipo
ResourceLocation
Ha Getter
Ha Setter
no
Descrizione
Nome
remainingFireTicks
Tipo
int
Ha Getter
Ha Setter
no
Descrizione
Nome
rideableUnderWater
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
rootVehicle
Tipo
Entity
Ha Getter
Ha Setter
no
Descrizione
Nome
shouldShowName
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
showVehicleHealth
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Nome
soundSource
Tipo
SoundSource
Ha Getter
Ha Setter
no
Descrizione
Nome
stringUUID
Tipo
string
Ha Getter
Ha Setter
no
Descrizione
Nome
tags
Tipo
Set<string>
Ha Getter
Ha Setter
no
Descrizione
Nome
teamColor
Tipo
int
Ha Getter
Ha Setter
no
Descrizione
Nome
ticksFrozen
Tipo
int
Ha Getter
Ha Setter
no
Descrizione
Nome
ticksRequiredToFreeze
Tipo
int
Ha Getter
Ha Setter
no
Descrizione
Nome
type
Tipo
EntityType
Ha Getter
Ha Setter
no
Descrizione
Nome
vehicle
Tipo
Entity?
Ha Getter
Ha Setter
no
Descrizione
Nome
x
Tipo
double
Ha Getter
Ha Setter
no
Descrizione
Nome
y
Tipo
double
Ha Getter
Ha Setter
no
Descrizione
Nome
z
Tipo
double
Ha Getter
Ha Setter
no
Descrizione