Entity
Link to entity
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 Copyimport crafttweaker.api.entity.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
Metodi
Link to metodi
Name: addTag
Return Type: boolean
ZenScript CopyEntity.addTag(tagName as string) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro tagName | Tipo string | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro other | Tipo Entity | Descrizione No Description Provided |
Name: canFreeze
Return Type: boolean
ZenScript Copy// Entity.canFreeze() as boolean
myEntity.canFreeze();
Name: clearFire
Return Type: void
ZenScript Copy// Entity.clearFire() as void
myEntity.clearFire();
Name: closerThan
Return Type: boolean
ZenScript CopyEntity.closerThan(other as Entity, distance as double) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro other | Tipo Entity | Descrizione No Description Provided |
Parametro distance | Tipo double | Descrizione No Description Provided |
Name: discard
Return Type: void
ZenScript Copy// Entity.discard() as void
myEntity.discard();
Name: distanceTo
Return Type: float
ZenScript CopyEntity.distanceTo(entity as Entity) as float
Parametro | Tipo | Descrizione |
---|---|---|
Parametro entity | Tipo Entity | Descrizione No Description Provided |
Name: distanceToSqr
Return Type: double
ZenScript CopyEntity.distanceToSqr(entity as Entity) as double
Parametro | Tipo | Descrizione |
---|---|---|
Parametro entity | Tipo Entity | Descrizione No Description Provided |
Name: distanceToSqr
Return Type: double
ZenScript CopyEntity.distanceToSqr(vec as Vec3) as double
Parametro | Tipo | Descrizione |
---|---|---|
Parametro vec | Tipo Vec3 | Descrizione No Description Provided |
Name: distanceToSqr
Return Type: double
ZenScript CopyEntity.distanceToSqr(x as double, y as double, z as double) as double
Parametro | Tipo | Descrizione |
---|---|---|
Parametro x | Tipo double | Descrizione No Description Provided |
Parametro y | Tipo double | Descrizione No Description Provided |
Parametro z | Tipo double | Descrizione No Description Provided |
Name: ejectPassengers
Return Type: void
ZenScript Copy// Entity.ejectPassengers() as void
myEntity.ejectPassengers();
Name: eyeBlockPosition
Return Type: BlockPos
ZenScript Copy// Entity.eyeBlockPosition() as BlockPos
myEntity.eyeBlockPosition();
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: getBrightness
Return Type: float
ZenScript Copy// Entity.getBrightness() as float
myEntity.getBrightness();
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: 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: 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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro partialTicks | Tipo float | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro partialTicks | Tipo float | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro partialTicks | Tipo float | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro partialTicks | Tipo float | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro scale | Tipo double | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro scale | Tipo double | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro scale | Tipo double | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro entity | Tipo Entity | Descrizione No Description Provided |
Name: hasPassenger
Return Type: boolean
ZenScript CopyEntity.hasPassenger(entity as Entity) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro entity | Tipo Entity | Descrizione No Description Provided |
Name: hasPassenger
Return Type: boolean
ZenScript CopyEntity.hasPassenger(predicate as Predicate<Entity>) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro predicate | Tipo Predicate<Entity> | Descrizione No Description Provided |
Name: hurt
Return Type: boolean
ZenScript CopyEntity.hurt(source as DamageSource, amount as float) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro sorgente | Tipo DamageSource | Descrizione No Description Provided |
Parametro amount | Tipo float | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro pos | Tipo BlockPos | Descrizione No Description Provided |
Parametro state | Tipo BlockState | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro x | Tipo double | Descrizione No Description Provided |
Parametro y | Tipo double | Descrizione No Description Provided |
Parametro z | Tipo double | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro player | Tipo Player | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro sorgente | Tipo DamageSource | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro entity | Tipo Entity | Descrizione No Description Provided |
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
Return Type: void
ZenScript Copy// Entity.kill() as void
myEntity.kill();
Name: lavaHurt
Return Type: void
ZenScript Copy// Entity.lavaHurt() as void
myEntity.lavaHurt();
Name: moveRelative
Return Type: void
ZenScript CopyEntity.moveRelative(amount as float, relative as Vec3) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro amount | Tipo float | Descrizione No Description Provided |
Parametro relative | Tipo Vec3 | Descrizione No Description Provided |
Name: moveTo
Return Type: void
ZenScript CopyEntity.moveTo(vec as Vec3) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro vec | Tipo Vec3 | Descrizione No Description Provided |
Name: moveTo
Return Type: void
ZenScript CopyEntity.moveTo(pos as BlockPos, yaw as float, pitch as float) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro pos | Tipo BlockPos | Descrizione No Description Provided |
Parametro yaw | Tipo float | Descrizione No Description Provided |
Parametro pitch | Tipo float | Descrizione No Description Provided |
Name: moveTo
Return Type: void
ZenScript CopyEntity.moveTo(x as double, y as double, z as double) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro x | Tipo double | Descrizione No Description Provided |
Parametro y | Tipo double | Descrizione No Description Provided |
Parametro z | Tipo double | Descrizione No Description Provided |
Name: moveTo
Return Type: void
ZenScript CopyEntity.moveTo(x as double, y as double, z as double, yaw as float, pitch as float) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro x | Tipo double | Descrizione No Description Provided |
Parametro y | Tipo double | Descrizione No Description Provided |
Parametro z | Tipo double | Descrizione No Description Provided |
Parametro yaw | Tipo float | Descrizione No Description Provided |
Parametro pitch | Tipo float | Descrizione No Description Provided |
Name: occludesVibrations
Return Type: boolean
ZenScript Copy// Entity.occludesVibrations() as boolean
myEntity.occludesVibrations();
Name: playSound
Return Type: void
ZenScript CopyEntity.playSound(sound as SoundEvent, volume as float, pitch as float) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro sound | Tipo SoundEvent | Descrizione No Description Provided |
Parametro volume | Tipo float | Descrizione No Description Provided |
Parametro pitch | Tipo float | Descrizione No Description Provided |
Name: positionRider
Return Type: void
ZenScript CopyEntity.positionRider(entity as Entity) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro entity | Tipo Entity | Descrizione No Description Provided |
Name: removeTag
Return Type: boolean
ZenScript CopyEntity.removeTag(tagName as string) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro tagName | Tipo string | Descrizione No Description Provided |
Name: removeVehicle
Return Type: void
ZenScript Copy// Entity.removeVehicle() as void
myEntity.removeVehicle();
Name: rideableUnderWater
Return Type: boolean
ZenScript Copy// Entity.rideableUnderWater() as boolean
myEntity.rideableUnderWater();
Name: sendMessage
Return Type: void
ZenScript CopyEntity.sendMessage(message as Component) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro message | Tipo Component | Descrizione No Description Provided |
Name: setAirSupply
Return Type: void
ZenScript CopyEntity.setAirSupply(air as int) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro air | Tipo int | Descrizione No Description Provided |
Name: setCustomName
Return Type: void
ZenScript CopyEntity.setCustomName(name as Component) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro nome | Tipo Component | Descrizione No Description Provided |
Name: setCustomNameVisible
Return Type: void
ZenScript CopyEntity.setCustomNameVisible(visible as boolean) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro visible | Tipo boolean | Descrizione No Description Provided |
Name: setGlowingTag
Return Type: void
ZenScript CopyEntity.setGlowingTag(glowing as boolean) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro glowing | Tipo boolean | Descrizione No Description Provided |
Name: setInvisible
Return Type: void
ZenScript CopyEntity.setInvisible(invisible as boolean) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro invisible | Tipo boolean | Descrizione No Description Provided |
Name: setInvulnerable
Return Type: void
ZenScript CopyEntity.setInvulnerable(invulnerable as boolean) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro invulnerable | Tipo boolean | Descrizione No Description Provided |
Name: setIsInPowderSnow
Return Type: void
ZenScript CopyEntity.setIsInPowderSnow(inPowderSnow as boolean) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro inPowderSnow | Tipo boolean | Descrizione No Description Provided |
Name: setItemSlot
Return Type: void
ZenScript CopyEntity.setItemSlot(slot as EquipmentSlot, stack as ItemStack) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro slot | Tipo EquipmentSlot | Descrizione No Description Provided |
Parametro stack | Tipo ItemStack | Descrizione No Description Provided |
Name: setNoGravity
Return Type: void
ZenScript CopyEntity.setNoGravity(noGravity as boolean) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro noGravity | Tipo boolean | Descrizione No Description Provided |
Name: setOldPosAndRot
Return Type: void
ZenScript Copy// Entity.setOldPosAndRot() as void
myEntity.setOldPosAndRot();
Name: setOnGround
Return Type: void
ZenScript CopyEntity.setOnGround(onGround as boolean) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro onGround | Tipo boolean | Descrizione No Description Provided |
Name: setPortalCooldown
Return Type: void
ZenScript Copy// Entity.setPortalCooldown() as void
myEntity.setPortalCooldown();
Name: setPos
Return Type: void
ZenScript CopyEntity.setPos(position as Vec3) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro position | Tipo Vec3 | Descrizione No Description Provided |
Name: setPos
Return Type: void
ZenScript CopyEntity.setPos(x as double, y as double, z as double) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro x | Tipo double | Descrizione No Description Provided |
Parametro y | Tipo double | Descrizione No Description Provided |
Parametro z | Tipo double | Descrizione No Description Provided |
Name: setPosRaw
Return Type: void
ZenScript CopyEntity.setPosRaw(x as double, y as double, z as double) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro x | Tipo double | Descrizione No Description Provided |
Parametro y | Tipo double | Descrizione No Description Provided |
Parametro z | Tipo double | Descrizione No Description Provided |
Name: setRemainingFireTicks
Return Type: void
ZenScript CopyEntity.setRemainingFireTicks(ticks as int) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro ticks | Tipo int | Descrizione No Description Provided |
Name: setSecondsOnFire
Return Type: void
ZenScript CopyEntity.setSecondsOnFire(seconds as int) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro seconds | Tipo int | Descrizione No Description Provided |
Name: setShiftKeyDown
Return Type: void
ZenScript CopyEntity.setShiftKeyDown(keyDown as boolean) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro keyDown | Tipo boolean | Descrizione No Description Provided |
Name: setSilent
Return Type: void
ZenScript CopyEntity.setSilent(silent as boolean) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro silent | Tipo boolean | Descrizione No Description Provided |
Name: setSprinting
Return Type: void
ZenScript CopyEntity.setSprinting(sprinting as boolean) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro sprinting | Tipo boolean | Descrizione No Description Provided |
Name: setSwimming
Return Type: void
ZenScript CopyEntity.setSwimming(swimming as boolean) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro swimming | Tipo boolean | Descrizione No Description Provided |
Name: setTicksFrozen
Return Type: void
ZenScript CopyEntity.setTicksFrozen(ticks as int) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro ticks | Tipo int | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro entity | Tipo Entity | Descrizione No Description Provided |
Name: startRiding
Return Type: boolean
ZenScript CopyEntity.startRiding(entity as Entity, force as boolean) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro entity | Tipo Entity | Descrizione No Description Provided |
Parametro force | Tipo boolean | Descrizione No Description Provided |
Name: stopRiding
Return Type: void
ZenScript Copy// Entity.stopRiding() as void
myEntity.stopRiding();
Name: teleportTo
Return Type: void
ZenScript CopyEntity.teleportTo(x as double, y as double, z as double) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro x | Tipo double | Descrizione No Description Provided |
Parametro y | Tipo double | Descrizione No Description Provided |
Parametro z | Tipo double | Descrizione No Description Provided |
Name: turn
Return Type: void
ZenScript CopyEntity.turn(yaw as double, pitch as double) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro yaw | Tipo double | Descrizione No Description Provided |
Parametro pitch | Tipo double | Descrizione No Description Provided |
Name: unRide
Return Type: void
ZenScript Copy// Entity.unRide() as void
myEntity.unRide();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome airSupply | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome allSlots | Tipo stdlib.Iterable<ItemStack> | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome armorSlots | Tipo stdlib.Iterable<ItemStack> | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome bbHeight | Tipo float | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome bbWidth | Tipo float | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome blockPosition | Tipo BlockPos | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome blockX | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome blockY | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome blockZ | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome boundingBoxForCulling | Tipo AABB | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome brightness | Tipo float | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome canBeCollidedWith | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome canFreeze | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome commandSenderWorld | Tipo Level | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome controllingPassenger | Tipo Entity | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome customName | Tipo Component | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome data | Tipo MapData | Ha Getter sì | Ha Setter no | Descrizione Gets the NBT data of this Entity. |
Nome dimensionChangingDelay | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome direction | Tipo Direction | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome displayName | Tipo Component | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome eyeBlockPosition | Tipo BlockPos | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome eyeHeight | Tipo float | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome eyePosition | Tipo Vec3 | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome eyeY | Tipo double | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome feetBlockState | Tipo BlockState | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome fireImmune | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome firstPassenger | Tipo Entity | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome fluidJumpThreshold | Tipo double | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome forward | Tipo Vec3 | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome handSlots | Tipo stdlib.Iterable<ItemStack> | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome hasCustomName | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome hasExactlyOnePlayerPassenger | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome hasGlowingTag | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isAlive | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isAttackable | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isCrouching | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isCurrentlyGlowing | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isCustomNameVisible | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isDescending | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isDiscrete | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isFullyFrozen | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isInLava | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isInWall | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isInWater | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isInWaterOrBubble | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isInWaterOrRain | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isInWaterRainOrBubble | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isInvisible | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isInvulnerable | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isNoGravity | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isOnFire | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isOnGround | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isOnPortalCooldown | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isPassenger | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isPickable | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isPushable | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isPushedByFluid | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isRemoved | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isShiftKeyDown | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isSilent | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isSpectator | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isSprinting | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isSteppingCarefully | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isSuppressingBounce | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isSwimming | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isUnderWater | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isVehicle | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isVisuallyCrawling | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isVisuallySwimming | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome level | Tipo Level | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome lookAngle | Tipo Vec3 | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome maxAirSupply | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome maxFallDistance | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome motionDirection | Tipo Direction | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome nome | Tipo Component | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome occludesVibrations | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome onPos | Tipo BlockPos | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome passengers | Tipo stdlib.List<Entity> | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome percentFrozen | Tipo float | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome pistonPushReaction | Tipo PushReaction | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome portalWaitTime | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome position | Tipo Vec3 | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome remainingFireTicks | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome rideableUnderWater | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome rootVehicle | Tipo Entity | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome shouldShowName | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome showVehicleHealth | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome soundSource | Tipo SoundSource | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome stringUUID | Tipo string | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome tags | Tipo Set<string> | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome teamColor | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome ticksFrozen | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome ticksRequiredToFreeze | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome type | Tipo EntityType | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome vehicle | Tipo Entity | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome x | Tipo double | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome y | Tipo double | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome z | Tipo double | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |