Entity
Link to entity
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 Copyimport 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
Implemented Interfaces
Link to implemented-interfaces
Entity implements the following interfaces. That means all methods defined in these interfaces are also available in Entity
Methods
Link to methods
Name: addTag
Return Type: boolean
ZenScript CopyEntity.addTag(tagName as string) as boolean
Parameter | Type |
---|---|
Parameter tagName | Type string |
Name: blockPosition
Return Type: BlockPos
ZenScript Copy// Entity.blockPosition() as BlockPos
myEntity.blockPosition();
Name: canBeCollidedWith
Return Type: boolean
ZenScript Copy// Entity.canBeCollidedWith() as boolean
myEntity.canBeCollidedWith();
Name: canCollideWith
Return Type: boolean
ZenScript CopyEntity.canCollideWith(other as Entity) as boolean
Parameter | Type |
---|---|
Parameter other | Type 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 CopyEntity.closerThan(other as Entity, distance as double) as boolean
Parameter | Type |
---|---|
Parameter other | Type Entity |
Parameter distance | Type double |
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 CopyEntity.distanceTo(entity as Entity) as float
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Name: distanceToSqr
Return Type: double
ZenScript CopyEntity.distanceToSqr(entity as Entity) as double
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Name: distanceToSqr
Return Type: double
ZenScript CopyEntity.distanceToSqr(vec as Vec3) as double
Parameter | Type |
---|---|
Parameter vec | Type Vec3 |
Name: distanceToSqr
Return Type: double
ZenScript CopyEntity.distanceToSqr(x as double, y as double, z as double) as double
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type 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();
Name: getBoundingBoxForCulling
Return Type: AABB
ZenScript Copy// Entity.getBoundingBoxForCulling() as AABB
myEntity.getBoundingBoxForCulling();
Name: getCommandSenderWorld
Return Type: Level
ZenScript Copy// Entity.getCommandSenderWorld() as Level
myEntity.getCommandSenderWorld();
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();
Name: getDeltaMovement
Return Type: Vec3
ZenScript Copy// Entity.getDeltaMovement() as Vec3
myEntity.getDeltaMovement();
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 CopyEntity.getEyePosition(partialTicks as float) as Vec3
Parameter | Type |
---|---|
Parameter partialTicks | Type float |
Name: getEyeY
Return Type: double
ZenScript Copy// Entity.getEyeY() as double
myEntity.getEyeY();
Name: getFeetBlockState
Return Type: BlockState
ZenScript Copy// Entity.getFeetBlockState() as BlockState
myEntity.getFeetBlockState();
Name: getFirstPassenger
Return Type: Entity?
ZenScript Copy// Entity.getFirstPassenger() as Entity?
myEntity.getFirstPassenger();
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: 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();
Name: getMaxFallDistance
Return Type: int
ZenScript Copy// Entity.getMaxFallDistance() as int
myEntity.getMaxFallDistance();
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();
Name: getPercentFrozen
Return Type: float
ZenScript Copy// Entity.getPercentFrozen() as float
myEntity.getPercentFrozen();
Name: getPistonPushReaction
Return Type: PushReaction
ZenScript Copy// Entity.getPistonPushReaction() as PushReaction
myEntity.getPistonPushReaction();
Name: getPortalWaitTime
Return Type: int
ZenScript Copy// Entity.getPortalWaitTime() as int
myEntity.getPortalWaitTime();
Name: getPosition
Return Type: Vec3
ZenScript CopyEntity.getPosition(partialTicks as float) as Vec3
Parameter | Type |
---|---|
Parameter partialTicks | Type float |
Name: getRegistryName
Return Type: ResourceLocation
ZenScript Copy// Entity.getRegistryName() as ResourceLocation
myEntity.getRegistryName();
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();
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 CopyEntity.getUpVector(partialTicks as float) as Vec3
Parameter | Type |
---|---|
Parameter partialTicks | Type float |
Name: getVehicle
Return Type: Entity?
ZenScript Copy// Entity.getVehicle() as Entity?
myEntity.getVehicle();
Name: getViewVector
Return Type: Vec3
ZenScript CopyEntity.getViewVector(partialTicks as float) as Vec3
Parameter | Type |
---|---|
Parameter partialTicks | Type float |
Name: getX
Return Type: double
ZenScript Copy// Entity.getX() as double
myEntity.getX();
Name: getX
Return Type: double
ZenScript CopyEntity.getX(scale as double) as double
Parameter | Type |
---|---|
Parameter scale | Type double |
Name: getY
Return Type: double
ZenScript Copy// Entity.getY() as double
myEntity.getY();
Name: getY
Return Type: double
ZenScript CopyEntity.getY(scale as double) as double
Parameter | Type |
---|---|
Parameter scale | Type double |
Name: getZ
Return Type: double
ZenScript Copy// Entity.getZ() as double
myEntity.getZ();
Name: getZ
Return Type: double
ZenScript CopyEntity.getZ(scale as double) as double
Parameter | Type |
---|---|
Parameter scale | Type double |
Name: hasCustomName
Return Type: boolean
ZenScript Copy// Entity.hasCustomName() as boolean
myEntity.hasCustomName();
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();
Name: hasIndirectPassenger
Return Type: boolean
ZenScript CopyEntity.hasIndirectPassenger(entity as Entity) as boolean
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Name: hasPassenger
Return Type: boolean
ZenScript CopyEntity.hasPassenger(entity as Entity) as boolean
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Name: hasPassenger
Return Type: boolean
ZenScript CopyEntity.hasPassenger(predicate as Predicate<Entity>) as boolean
Parameter | Type |
---|---|
Parameter predicate | Type Predicate<Entity> |
Name: hurt
Return Type: boolean
ZenScript CopyEntity.hurt(source as DamageSource, amount as float) as boolean
Parameter | Type |
---|---|
Parameter ソース | Type DamageSource |
Parameter amount | Type 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 CopyEntity.isColliding(pos as BlockPos, state as BlockState) as boolean
Parameter | Type |
---|---|
Parameter pos | Type BlockPos |
Parameter state | Type BlockState |
Name: isCrouching
Return Type: boolean
ZenScript Copy// Entity.isCrouching() as boolean
myEntity.isCrouching();
Name: isCurrentlyGlowing
Return Type: boolean
ZenScript Copy// Entity.isCurrentlyGlowing() as boolean
myEntity.isCurrentlyGlowing();
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 CopyEntity.isFree(x as double, y as double, z as double) as boolean
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type 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();
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();
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 CopyEntity.isInvisibleTo(player as Player) as boolean
Parameter | Type |
---|---|
Parameter player | Type Player |
Name: isInvulnerable
Return Type: boolean
ZenScript Copy// Entity.isInvulnerable() as boolean
myEntity.isInvulnerable();
Name: isInvulnerableTo
Return Type: boolean
ZenScript CopyEntity.isInvulnerableTo(source as DamageSource) as boolean
Parameter | Type |
---|---|
Parameter ソース | Type 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();
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();
Name: isPassengerOfSameVehicle
Return Type: boolean
ZenScript CopyEntity.isPassengerOfSameVehicle(entity as Entity) as boolean
Parameter | Type |
---|---|
Parameter entity | Type 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();
Name: isSteppingCarefully
Return Type: boolean
ZenScript Copy// Entity.isSteppingCarefully() as boolean
myEntity.isSteppingCarefully();
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();
Name: isVisuallyCrawling
Return Type: boolean
ZenScript Copy// Entity.isVisuallyCrawling() as boolean
myEntity.isVisuallyCrawling();
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 CopyEntity.moveRelative(amount as float, relative as Vec3)
Parameter | Type |
---|---|
Parameter amount | Type float |
Parameter relative | Type Vec3 |
Name: moveTo
ZenScript CopyEntity.moveTo(pos as BlockPos, yaw as float, pitch as float)
Parameter | Type |
---|---|
Parameter pos | Type BlockPos |
Parameter yaw | Type float |
Parameter pitch | Type float |
Name: moveTo
ZenScript CopyEntity.moveTo(x as double, y as double, z as double)
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Name: moveTo
ZenScript CopyEntity.moveTo(x as double, y as double, z as double, yaw as float, pitch as float)
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Parameter yaw | Type float |
Parameter pitch | Type float |
Name: playSound
ZenScript CopyEntity.playSound(sound as SoundEvent, volume as float, pitch as float)
Parameter | Type |
---|---|
Parameter sound | Type SoundEvent |
Parameter volume | Type float |
Parameter pitch | Type float |
Name: positionRider
ZenScript CopyEntity.positionRider(entity as Entity)
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Name: removeTag
Return Type: boolean
ZenScript CopyEntity.removeTag(tagName as string) as boolean
Parameter | Type |
---|---|
Parameter tagName | Type string |
Name: removeVehicle
ZenScript Copy// Entity.removeVehicle()
myEntity.removeVehicle();
Name: rideableUnderWater
Return Type: boolean
ZenScript Copy// Entity.rideableUnderWater() as boolean
myEntity.rideableUnderWater();
Name: setAirSupply
ZenScript CopyEntity.setAirSupply(air as int)
Parameter | Type |
---|---|
Parameter air | Type int |
Name: setCustomName
ZenScript CopyEntity.setCustomName(name as Component?)
Parameter | Type |
---|---|
Parameter name | Type Component? |
Name: setCustomNameVisible
ZenScript CopyEntity.setCustomNameVisible(visible as boolean)
Parameter | Type |
---|---|
Parameter visible | Type boolean型 |
Name: setDeltaMovement
ZenScript CopyEntity.setDeltaMovement(deltaMovement as Vec3)
Parameter | Type |
---|---|
Parameter deltaMovement | Type Vec3 |
Name: setDeltaMovement
ZenScript CopyEntity.setDeltaMovement(xDelta as double, yDelta as double, zDelta as double)
Parameter | Type |
---|---|
Parameter xDelta | Type double |
Parameter yDelta | Type double |
Parameter zDelta | Type double |
Name: setGlowingTag
ZenScript CopyEntity.setGlowingTag(glowing as boolean)
Parameter | Type |
---|---|
Parameter glowing | Type boolean型 |
Name: setInvisible
ZenScript CopyEntity.setInvisible(invisible as boolean)
Parameter | Type |
---|---|
Parameter invisible | Type boolean型 |
Name: setInvulnerable
ZenScript CopyEntity.setInvulnerable(invulnerable as boolean)
Parameter | Type |
---|---|
Parameter invulnerable | Type boolean型 |
Name: setIsInPowderSnow
ZenScript CopyEntity.setIsInPowderSnow(inPowderSnow as boolean)
Parameter | Type |
---|---|
Parameter inPowderSnow | Type boolean型 |
Name: setItemSlot
ZenScript CopyEntity.setItemSlot(slot as EquipmentSlot, stack as ItemStack)
Parameter | Type |
---|---|
Parameter slot | Type EquipmentSlot |
Parameter stack | Type ItemStack |
Name: setNoGravity
ZenScript CopyEntity.setNoGravity(noGravity as boolean)
Parameter | Type |
---|---|
Parameter noGravity | Type boolean型 |
Name: setOldPosAndRot
ZenScript Copy// Entity.setOldPosAndRot()
myEntity.setOldPosAndRot();
Name: setOnGround
ZenScript CopyEntity.setOnGround(onGround as boolean)
Parameter | Type |
---|---|
Parameter onGround | Type boolean型 |
Name: setPortalCooldown
ZenScript Copy// Entity.setPortalCooldown()
myEntity.setPortalCooldown();
Name: setPos
ZenScript CopyEntity.setPos(x as double, y as double, z as double)
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Name: setPosRaw
ZenScript CopyEntity.setPosRaw(x as double, y as double, z as double)
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Name: setRemainingFireTicks
ZenScript CopyEntity.setRemainingFireTicks(ticks as int)
Parameter | Type |
---|---|
Parameter ticks | Type int |
Name: setSecondsOnFire
ZenScript CopyEntity.setSecondsOnFire(seconds as int)
Parameter | Type |
---|---|
Parameter seconds | Type int |
Name: setShiftKeyDown
ZenScript CopyEntity.setShiftKeyDown(keyDown as boolean)
Parameter | Type |
---|---|
Parameter keyDown | Type boolean型 |
Name: setSilent
ZenScript CopyEntity.setSilent(silent as boolean)
Parameter | Type |
---|---|
Parameter silent | Type boolean型 |
Name: setSprinting
ZenScript CopyEntity.setSprinting(sprinting as boolean)
Parameter | Type |
---|---|
Parameter sprinting | Type boolean型 |
Name: setSwimming
ZenScript CopyEntity.setSwimming(swimming as boolean)
Parameter | Type |
---|---|
Parameter swimming | Type boolean型 |
Name: setTicksFrozen
ZenScript CopyEntity.setTicksFrozen(ticks as int)
Parameter | Type |
---|---|
Parameter ticks | Type int |
Name: shouldShowName
Return Type: boolean
ZenScript Copy// Entity.shouldShowName() as boolean
myEntity.shouldShowName();
Name: showVehicleHealth
Return Type: boolean
ZenScript Copy// Entity.showVehicleHealth() as boolean
myEntity.showVehicleHealth();
Name: startRiding
Return Type: boolean
ZenScript CopyEntity.startRiding(entity as Entity) as boolean
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Name: startRiding
Return Type: boolean
ZenScript CopyEntity.startRiding(entity as Entity, force as boolean) as boolean
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Parameter force | Type boolean型 |
Name: stopRiding
ZenScript Copy// Entity.stopRiding()
myEntity.stopRiding();
Name: teleportTo
ZenScript CopyEntity.teleportTo(x as double, y as double, z as double)
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Name: turn
ZenScript CopyEntity.turn(yaw as double, pitch as double)
Parameter | Type |
---|---|
Parameter yaw | Type double |
Parameter pitch | Type double |
Name: unRide
ZenScript Copy// Entity.unRide()
myEntity.unRide();
Name: updateCustomData
Updates the custom NBT data for this Entity.
ZenScript Copy// Entity.updateCustomData(data as MapData)
myEntity.updateCustomData({custom: "data"});
Parameter | Type | Description |
---|---|---|
Parameter data | Type MapData | Description 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"});
Parameter | Type | Description |
---|---|---|
Parameter data | Type MapData | Description The new Data for this Entity |
Properties
Link to properties
名称 | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
名称 airSupply | Type int | Has Getter true | Has Setter false | Description |
名称 allSlots | Type stdlib.Iterable<ItemStack> | Has Getter true | Has Setter false | Description |
名称 armorSlots | Type stdlib.Iterable<ItemStack> | Has Getter true | Has Setter false | Description |
名称 bbHeight | Type float | Has Getter true | Has Setter false | Description |
名称 bbWidth | Type float | Has Getter true | Has Setter false | Description |
名称 blockPosition | Type BlockPos | Has Getter true | Has Setter false | Description |
名称 blockX | Type int | Has Getter true | Has Setter false | Description |
名称 blockY | Type int | Has Getter true | Has Setter false | Description |
名称 blockZ | Type int | Has Getter true | Has Setter false | Description |
名称 boundingBoxForCulling | Type AABB | Has Getter true | Has Setter false | Description |
名称 canBeCollidedWith | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 canFreeze | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 commandSenderWorld | Type Level | Has Getter true | Has Setter false | Description |
名称 controllingPassenger | Type Entity? | Has Getter true | Has Setter false | Description |
名称 customData | Type MapData | Has Getter true | Has Setter false | Description Gets the custom NBT data for this Entity. |
名称 customName | Type Component? | Has Getter true | Has Setter false | Description |
名称 dampensVibrations | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 data | Type MapData | Has Getter true | Has Setter false | Description Gets the NBT data of this Entity. |
名称 deltaMovement | Type Vec3 | Has Getter true | Has Setter true | Description |
名称 dimensionChangingDelay | Type int | Has Getter true | Has Setter false | Description |
名称 direction | Type Direction | Has Getter true | Has Setter false | Description |
名称 displayName | Type Component | Has Getter true | Has Setter false | Description |
名称 eyeHeight | Type float | Has Getter true | Has Setter false | Description |
名称 eyePosition | Type Vec3 | Has Getter true | Has Setter false | Description |
名称 eyeY | Type double | Has Getter true | Has Setter false | Description |
名称 feetBlockState | Type BlockState | Has Getter true | Has Setter false | Description |
名称 fireImmune | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 firstPassenger | Type Entity? | Has Getter true | Has Setter false | Description |
名称 fluidJumpThreshold | Type double | Has Getter true | Has Setter false | Description |
名称 forward | Type Vec3 | Has Getter true | Has Setter false | Description |
名称 handSlots | Type stdlib.Iterable<ItemStack> | Has Getter true | Has Setter false | Description |
名称 hasCustomName | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 hasExactlyOnePlayerPassenger | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 hasGlowingTag | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isAlive | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isAttackable | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isCrouching | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isCurrentlyGlowing | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isCustomNameVisible | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isDescending | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isDiscrete | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isFullyFrozen | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isInLava | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isInWall | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isInWater | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isInWaterOrBubble | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isInWaterOrRain | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isInWaterRainOrBubble | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isInvisible | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isInvulnerable | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isNoGravity | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isOnFire | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isOnGround | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isOnPortalCooldown | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isPassenger | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isPickable | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isPushable | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isPushedByFluid | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isRemoved | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isShiftKeyDown | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isSilent | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isSpectator | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isSprinting | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isSteppingCarefully | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isSuppressingBounce | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isSwimming | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isUnderWater | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isVehicle | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isVisuallyCrawling | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 isVisuallySwimming | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 level | Type Level | Has Getter true | Has Setter false | Description |
名称 lookAngle | Type Vec3 | Has Getter true | Has Setter false | Description |
名称 maxAirSupply | Type int | Has Getter true | Has Setter false | Description |
名称 maxFallDistance | Type int | Has Getter true | Has Setter false | Description |
名称 motionDirection | Type Direction | Has Getter true | Has Setter false | Description |
名称 name | Type Component | Has Getter true | Has Setter false | Description |
名称 onPos | Type BlockPos | Has Getter true | Has Setter false | Description |
名称 passengers | Type stdlib.List<Entity> | Has Getter true | Has Setter false | Description |
名称 percentFrozen | Type float | Has Getter true | Has Setter false | Description |
名称 pistonPushReaction | Type PushReaction | Has Getter true | Has Setter false | Description |
名称 portalWaitTime | Type int | Has Getter true | Has Setter false | Description |
名称 position | Type Vec3 | Has Getter true | Has Setter false | Description |
名称 registryName | Type ResourceLocation | Has Getter true | Has Setter false | Description |
名称 remainingFireTicks | Type int | Has Getter true | Has Setter false | Description |
名称 rideableUnderWater | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 rootVehicle | Type Entity | Has Getter true | Has Setter false | Description |
名称 shouldShowName | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 showVehicleHealth | Type boolean型 | Has Getter true | Has Setter false | Description |
名称 soundSource | Type SoundSource | Has Getter true | Has Setter false | Description |
名称 stringUUID | Type string | Has Getter true | Has Setter false | Description |
名称 tags | Type Set<string> | Has Getter true | Has Setter false | Description |
名称 teamColor | Type int | Has Getter true | Has Setter false | Description |
名称 ticksFrozen | Type int | Has Getter true | Has Setter false | Description |
名称 ticksRequiredToFreeze | Type int | Has Getter true | Has Setter false | Description |
名称 type | Type EntityType | Has Getter true | Has Setter false | Description |
名称 vehicle | Type Entity? | Has Getter true | Has Setter false | Description |
名称 x | Type double | Has Getter true | Has Setter false | Description |
名称 y | Type double | Has Getter true | Has Setter false | Description |
名称 z | Type double | Has Getter true | Has Setter false | Description |