ItemEntity
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.entity.type.item.ItemEntity;
Extends
ItemEntity extends Entity
.
Implements
ItemEntity
implements the following interfaces:
Nameable
,EntityAccess
,CommandSource
,IAttachmentHolder
Undocumented Interfaces
TraceableEntity
,SyncedDataHolder
,ScoreHolder
,IEntityExtension
,INBTSerializable<CompoundTag>
Constructors
new ItemEntity(myLevel, myDouble, myDouble, myDouble, myItemStack);
Members
// ItemEntity.acceptsFailure as boolmyItemEntity.acceptsFailure
Return Type:
bool
Returns: True if the commands from this source should return failure messages, false otherwise.
// ItemEntity.acceptsFailure() as bool;myItemEntity.acceptsFailure();
Return Type:
bool
// ItemEntity.acceptsSuccess as boolmyItemEntity.acceptsSuccess
Return Type:
bool
Returns: True if the commands from this source should return successful messages, false otherwise.
// ItemEntity.acceptsSuccess() as bool;myItemEntity.acceptsSuccess();
Return Type:
bool
Returns: true if the tag was added.
// ItemEntity.addTag(tagName as string) as bool;myItemEntity.addTag(myString);
Parameters:
tagName: string
Type: string
- The name of the tag to add.
Return Type:
bool
// ItemEntity.airSupply as intmyItemEntity.airSupply
Return Type:
int
Returns: The current air supply of the entity.
// ItemEntity.airSupply() as int;myItemEntity.airSupply();
Return Type:
int
// ItemEntity.alwaysAccepts as boolmyItemEntity.alwaysAccepts
Return Type:
bool
Returns: True if the command source always accepts, false otherwise.
// ItemEntity.alwaysAccepts() as bool;myItemEntity.alwaysAccepts();
Return Type:
bool
// ItemEntity.bbHeight as floatmyItemEntity.bbHeight
Return Type:
float
Returns: The height of the bounding box of the entity.
// ItemEntity.bbHeight() as float;myItemEntity.bbHeight();
Return Type:
float
// ItemEntity.bbWidth as floatmyItemEntity.bbWidth
Return Type:
float
Returns: The width of the bounding box of the entity.
// ItemEntity.bbWidth() as float;myItemEntity.bbWidth();
Return Type:
float
// ItemEntity.blockX as intmyItemEntity.blockX
Return Type:
int
Returns: The x coordinate of the entity.
// ItemEntity.blockX() as int;myItemEntity.blockX();
Return Type:
int
// ItemEntity.blockY as intmyItemEntity.blockY
Return Type:
int
Returns: The y coordinate of the entity.
// ItemEntity.blockY() as int;myItemEntity.blockY();
Return Type:
int
// ItemEntity.blockZ as intmyItemEntity.blockZ
Return Type:
int
Returns: The z coordinate of the entity.
// ItemEntity.blockZ() as int;myItemEntity.blockZ();
Return Type:
int
// ItemEntity.canBeCollidedWith as boolmyItemEntity.canBeCollidedWith
Return Type:
bool
Returns: true if the entity can be collided with.
// ItemEntity.canBeCollidedWith() as bool;myItemEntity.canBeCollidedWith();
Return Type:
bool
Returns: true if the entity can collide with the given entity.
myItemEntity.canCollideWith(myEntity);
Return Type:
bool
// ItemEntity.canFreeze as boolmyItemEntity.canFreeze
Return Type:
bool
Returns: Whether the entity can freeze.
// ItemEntity.canFreeze() as bool;myItemEntity.canFreeze();
Return Type:
bool
// ItemEntity.clearFire();myItemEntity.clearFire();
Returns: true if the entity is closer than the given distance to the other entity.
myItemEntity.closerThan(myEntity, myDouble);
Parameters:
Return Type:
bool
net.minecraft.world.entity.item.ItemEntity
s who's item is in the dampens_vibrations item tag.// ItemEntity.dampensVibrations as boolmyItemEntity.dampensVibrations
Return Type:
bool
net.minecraft.world.entity.item.ItemEntity
s who's item is in the dampens_vibrations item tag.Returns: true if the entity dampens vibrations.
// ItemEntity.dampensVibrations() as bool;myItemEntity.dampensVibrations();
Return Type:
bool
// ItemEntity.dimensionChangingDelay as intmyItemEntity.dimensionChangingDelay
Return Type:
int
Returns: The dimension changing delay of the entity.
// ItemEntity.dimensionChangingDelay() as int;myItemEntity.dimensionChangingDelay();
Return Type:
int
// ItemEntity.discard();myItemEntity.discard();
// ItemEntity.dismountsUnderwater as boolmyItemEntity.dismountsUnderwater
Return Type:
bool
Returns: true if the entity dismounts underwater.
// ItemEntity.dismountsUnderwater() as bool;myItemEntity.dismountsUnderwater();
Return Type:
bool
Returns: The squared distance to the given position.
// ItemEntity.distanceToSqr(x as double, y as double, z as double) as double;myItemEntity.distanceToSqr(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to get the squared distance to. y: double
Type: double
- The y position to get the squared distance to. z: double
Type: double
- The z position to get the squared distance to.
Return Type:
double
Returns: The squared distance to the given entity.
myItemEntity.distanceToSqr(myEntity);
Return Type:
double
// ItemEntity.ejectPassengers();myItemEntity.ejectPassengers();
// ItemEntity.eyeHeight as floatmyItemEntity.eyeHeight
Return Type:
float
Returns: The eye height of the entity.
// ItemEntity.eyeHeight() as float;myItemEntity.eyeHeight();
Return Type:
float
// ItemEntity.eyeY as doublemyItemEntity.eyeY
Return Type:
double
Returns: The y coordinate of the entity's eyes.
// ItemEntity.eyeY() as double;myItemEntity.eyeY();
Return Type:
double
// ItemEntity.fireImmune as boolmyItemEntity.fireImmune
Return Type:
bool
Returns: true if the entity is fire immune.
// ItemEntity.fireImmune() as bool;myItemEntity.fireImmune();
Return Type:
bool
// ItemEntity.fireTicks as intmyItemEntity.fireTicks
Return Type:
int
// ItemEntity.fireTicks = (ticks as int);myItemEntity.fireTicks = myInt;
Parameters:
ticks: int
Type: int
- The number of ticks to set the remaining fire ticks to. // ItemEntity.fireTicks(ticks as int);myItemEntity.fireTicks(myInt);
Parameters:
ticks: int
Type: int
- The number of ticks to set the remaining fire ticks to. Returns: The remaining fire ticks of the entity.
// ItemEntity.fireTicks() as int;myItemEntity.fireTicks();
Return Type:
int
// ItemEntity.fluidJumpThreshold as doublemyItemEntity.fluidJumpThreshold
Return Type:
double
Returns: The fluid jump threshold of the entity.
// ItemEntity.fluidJumpThreshold() as double;myItemEntity.fluidJumpThreshold();
Return Type:
double
myItemEntity.getAttachmentData<T>(myAttachmentType);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
Return Type:
T
myItemEntity.getAttachmentData<T>(mySupplier);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
Return Type:
T
Returns: The x coordinate of the entity.
// ItemEntity.getX(scale as double) as double;myItemEntity.getX(myDouble);
Parameters:
scale: double
Type: double
- The scale to get the x coordinate of the entity.
Return Type:
double
Returns: The y coordinate of the entity.
// ItemEntity.getY(scale as double) as double;myItemEntity.getY(myDouble);
Parameters:
scale: double
Type: double
- The scale to get the y coordinate of the entity.
Return Type:
double
Returns: The z coordinate of the entity.
// ItemEntity.getZ(scale as double) as double;myItemEntity.getZ(myDouble);
Parameters:
scale: double
Type: double
- The scale to get the z coordinate of the entity.
Return Type:
double
myItemEntity.hasAttachmentData<T>(myAttachmentType);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
Return Type:
bool
myItemEntity.hasAttachmentData<T>(mySupplier);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
Return Type:
bool
// ItemEntity.hasCustomName as boolmyItemEntity.hasCustomName
Return Type:
bool
// ItemEntity.hasCustomName as boolmyItemEntity.hasCustomName
Return Type:
bool
Returns: true if the entity has a custom name.
// ItemEntity.hasCustomName() as bool;myItemEntity.hasCustomName();
Return Type:
bool
// ItemEntity.hasCustomName() as bool;myItemEntity.hasCustomName();
Return Type:
bool
// ItemEntity.hasExactlyOnePlayerPassenger as boolmyItemEntity.hasExactlyOnePlayerPassenger
Return Type:
bool
Returns: true if the entity has exactly one player passenger.
// ItemEntity.hasExactlyOnePlayerPassenger() as bool;myItemEntity.hasExactlyOnePlayerPassenger();
Return Type:
bool
// ItemEntity.hasGlowingTag as boolmyItemEntity.hasGlowingTag
Return Type:
bool
Returns: true if the entity is currently glowing.
// ItemEntity.hasGlowingTag() as bool;myItemEntity.hasGlowingTag();
Return Type:
bool
Returns: true if the entity has a passenger that matches the predicate.
myItemEntity.hasPassenger(myPredicate);
Parameters:
Return Type:
bool
// ItemEntity.hasPickupDelay as boolmyItemEntity.hasPickupDelay
Return Type:
bool
Returns: True if this item entity has a pickup delay, false otherwise.
// ItemEntity.hasPickupDelay() as bool;myItemEntity.hasPickupDelay();
Return Type:
bool
DamageSource
and amount.Returns: true if the entity was hurt.
myItemEntity.hurt(myDamageSource, myFloat);
Parameters:
amount: float
Type: float
- The amount of damage to deal.
Return Type:
bool
// ItemEntity.id as intmyItemEntity.id
Return Type:
int
Returns: The ID of the entity.
// ItemEntity.id() as int;myItemEntity.id();
Return Type:
int
BlockState
that this entity is currently inside.// ItemEntity.inBlockState as BlockStatemyItemEntity.inBlockState
Return Type:
BlockState
BlockState
that this entity is currently inside.Returns: The block state that this entity is currently inside
myItemEntity.inBlockState();
Return Type:
BlockState
// ItemEntity.isAlive as boolmyItemEntity.isAlive
Return Type:
bool
Returns: true if the entity is alive.
// ItemEntity.isAlive() as bool;myItemEntity.isAlive();
Return Type:
bool
// ItemEntity.isAlwaysTicking as boolmyItemEntity.isAlwaysTicking
Return Type:
bool
Returns: true if the entity is always ticking.
// ItemEntity.isAlwaysTicking() as bool;myItemEntity.isAlwaysTicking();
Return Type:
bool
// ItemEntity.isAttackable as boolmyItemEntity.isAttackable
Return Type:
bool
Returns: true if the entity is attackable.
// ItemEntity.isAttackable() as bool;myItemEntity.isAttackable();
Return Type:
bool
BlockState
at the given BlockPos
.Returns: true if the entity is colliding with the block.
myItemEntity.isColliding(myBlockPos, myBlockState);
Parameters:
Return Type:
bool
// ItemEntity.isCrouching as boolmyItemEntity.isCrouching
Return Type:
bool
Returns: true if the entity is crouching.
// ItemEntity.isCrouching() as bool;myItemEntity.isCrouching();
Return Type:
bool
// ItemEntity.isCurrentlyGlowing as boolmyItemEntity.isCurrentlyGlowing
Return Type:
bool
Returns: true if the entity is currently glowing.
// ItemEntity.isCurrentlyGlowing() as bool;myItemEntity.isCurrentlyGlowing();
Return Type:
bool
// ItemEntity.isCustomNameVisible as boolmyItemEntity.isCustomNameVisible
Return Type:
bool
Returns: true if the custom name is visible.
// ItemEntity.isCustomNameVisible() as bool;myItemEntity.isCustomNameVisible();
Return Type:
bool
// ItemEntity.isDescending as boolmyItemEntity.isDescending
Return Type:
bool
Returns: true if the entity is descending.
// ItemEntity.isDescending() as bool;myItemEntity.isDescending();
Return Type:
bool
// ItemEntity.isDiscrete as boolmyItemEntity.isDiscrete
Return Type:
bool
Returns: true if the entity is being discrete.
// ItemEntity.isDiscrete() as bool;myItemEntity.isDiscrete();
Return Type:
bool
Returns: true if the entity is free to move in the given position.
// ItemEntity.isFree(x as double, y as double, z as double) as bool;myItemEntity.isFree(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to check. y: double
Type: double
- The y position to check. z: double
Type: double
- The z position to check.
Return Type:
bool
// ItemEntity.isFullyFrozen as boolmyItemEntity.isFullyFrozen
Return Type:
bool
Returns: true if the entity is fully frozen.
// ItemEntity.isFullyFrozen() as bool;myItemEntity.isFullyFrozen();
Return Type:
bool
// ItemEntity.isInLava as boolmyItemEntity.isInLava
Return Type:
bool
Returns: true if the entity is in lava.
// ItemEntity.isInLava() as bool;myItemEntity.isInLava();
Return Type:
bool
// ItemEntity.isInvisible as boolmyItemEntity.isInvisible
Return Type:
bool
Returns: true if the entity is invisible.
// ItemEntity.isInvisible() as bool;myItemEntity.isInvisible();
Return Type:
bool
// ItemEntity.isInvulnerable as boolmyItemEntity.isInvulnerable
Return Type:
bool
Returns: true if the entity is invulnerable.
// ItemEntity.isInvulnerable() as bool;myItemEntity.isInvulnerable();
Return Type:
bool
DamageSource
.Returns: true if the entity is invulnerable to the damage source.
myItemEntity.isInvulnerableTo(myDamageSource);
Parameters:
Return Type:
bool
// ItemEntity.isInWall as boolmyItemEntity.isInWall
Return Type:
bool
Returns: true if the entity is in a wall.
// ItemEntity.isInWall() as bool;myItemEntity.isInWall();
Return Type:
bool
// ItemEntity.isInWater as boolmyItemEntity.isInWater
Return Type:
bool
Returns: true if the entity is in water.
// ItemEntity.isInWater() as bool;myItemEntity.isInWater();
Return Type:
bool
// ItemEntity.isInWaterOrBubble as boolmyItemEntity.isInWaterOrBubble
Return Type:
bool
Returns: true if the entity is in water or a bubble column.
// ItemEntity.isInWaterOrBubble() as bool;myItemEntity.isInWaterOrBubble();
Return Type:
bool
// ItemEntity.isInWaterOrRain as boolmyItemEntity.isInWaterOrRain
Return Type:
bool
Returns: true if the entity is in water or rain.
// ItemEntity.isInWaterOrRain() as bool;myItemEntity.isInWaterOrRain();
Return Type:
bool
// ItemEntity.isInWaterRainOrBubble as boolmyItemEntity.isInWaterRainOrBubble
Return Type:
bool
Returns: true if the entity is in water or rain or a bubble column.
// ItemEntity.isInWaterRainOrBubble() as bool;myItemEntity.isInWaterRainOrBubble();
Return Type:
bool
// ItemEntity.isNoGravity as boolmyItemEntity.isNoGravity
Return Type:
bool
Returns: true if the entity has no gravity.
// ItemEntity.isNoGravity() as bool;myItemEntity.isNoGravity();
Return Type:
bool
// ItemEntity.isOnFire as boolmyItemEntity.isOnFire
Return Type:
bool
Returns: true if the entity is on fire.
// ItemEntity.isOnFire() as bool;myItemEntity.isOnFire();
Return Type:
bool
// ItemEntity.isOnPortalCooldown as boolmyItemEntity.isOnPortalCooldown
Return Type:
bool
Returns: true if the entity is on portal cooldown.
// ItemEntity.isOnPortalCooldown() as bool;myItemEntity.isOnPortalCooldown();
Return Type:
bool
// ItemEntity.isPassenger as boolmyItemEntity.isPassenger
Return Type:
bool
Returns: true if the entity is a passenger.
// ItemEntity.isPassenger() as bool;myItemEntity.isPassenger();
Return Type:
bool
Returns: true if the entity is a passenger of the same vehicle.
myItemEntity.isPassengerOfSameVehicle(myEntity);
Return Type:
bool
// ItemEntity.isPickable as boolmyItemEntity.isPickable
Return Type:
bool
Returns: true if the entity is pickable.
// ItemEntity.isPickable() as bool;myItemEntity.isPickable();
Return Type:
bool
// ItemEntity.isPushable as boolmyItemEntity.isPushable
Return Type:
bool
Returns: true if the entity is pushable.
// ItemEntity.isPushable() as bool;myItemEntity.isPushable();
Return Type:
bool
// ItemEntity.isPushedByFluid as boolmyItemEntity.isPushedByFluid
Return Type:
bool
Returns: true if the entity is pushed by fluid.
// ItemEntity.isPushedByFluid() as bool;myItemEntity.isPushedByFluid();
Return Type:
bool
// ItemEntity.isRemoved as boolmyItemEntity.isRemoved
Return Type:
bool
Returns: Whether the entity has been removed.
// ItemEntity.isRemoved() as bool;myItemEntity.isRemoved();
Return Type:
bool
// ItemEntity.isShiftKeyDown as boolmyItemEntity.isShiftKeyDown
Return Type:
bool
Returns: true if the shift key is down.
// ItemEntity.isShiftKeyDown() as bool;myItemEntity.isShiftKeyDown();
Return Type:
bool
// ItemEntity.isSilent as boolmyItemEntity.isSilent
Return Type:
bool
Returns: true if the entity is silent.
// ItemEntity.isSilent() as bool;myItemEntity.isSilent();
Return Type:
bool
// ItemEntity.isSpectator as boolmyItemEntity.isSpectator
Return Type:
bool
Returns: true if the entity is a spectator.
// ItemEntity.isSpectator() as bool;myItemEntity.isSpectator();
Return Type:
bool
// ItemEntity.isSprinting as boolmyItemEntity.isSprinting
Return Type:
bool
Returns: true if the entity is sprinting.
// ItemEntity.isSprinting() as bool;myItemEntity.isSprinting();
Return Type:
bool
// ItemEntity.isSteppingCarefully as boolmyItemEntity.isSteppingCarefully
Return Type:
bool
Returns: true if the entity is stepping carefully.
// ItemEntity.isSteppingCarefully() as bool;myItemEntity.isSteppingCarefully();
Return Type:
bool
// ItemEntity.isSuppressingBounce as boolmyItemEntity.isSuppressingBounce
Return Type:
bool
Returns: true if the entity is suppressing bounce.
// ItemEntity.isSuppressingBounce() as bool;myItemEntity.isSuppressingBounce();
Return Type:
bool
// ItemEntity.isSwimming as boolmyItemEntity.isSwimming
Return Type:
bool
Returns: true if the entity is swimming.
// ItemEntity.isSwimming() as bool;myItemEntity.isSwimming();
Return Type:
bool
// ItemEntity.isUnderWater as boolmyItemEntity.isUnderWater
Return Type:
bool
Returns: true if the entity is underwater.
// ItemEntity.isUnderWater() as bool;myItemEntity.isUnderWater();
Return Type:
bool
// ItemEntity.isVehicle as boolmyItemEntity.isVehicle
Return Type:
bool
Returns: true if the entity is a vehicle.
// ItemEntity.isVehicle() as bool;myItemEntity.isVehicle();
Return Type:
bool
// ItemEntity.isVisuallyCrawling as boolmyItemEntity.isVisuallyCrawling
Return Type:
bool
Returns: true if the entity is visually crawling.
// ItemEntity.isVisuallyCrawling() as bool;myItemEntity.isVisuallyCrawling();
Return Type:
bool
// ItemEntity.isVisuallySwimming as boolmyItemEntity.isVisuallySwimming
Return Type:
bool
Returns: true if the entity is visually swimming.
// ItemEntity.isVisuallySwimming() as bool;myItemEntity.isVisuallySwimming();
Return Type:
bool
IItemStack
inside this ItemEntity.// ItemEntity.item as IItemStackmyItemEntity.item
Return Type:
IItemStack
IItemStack
inside this ItemEntity.Returns: The IItemStack
inside this ItemEntity.
myItemEntity.item();
Return Type:
IItemStack
IItemStack
inside this ItemEntity.myItemEntity.item(<item:minecraft:diamond>);
Parameters:
// ItemEntity.kill();myItemEntity.kill();
// ItemEntity.lavaHurt();myItemEntity.lavaHurt();
// ItemEntity.maxAirSupply as intmyItemEntity.maxAirSupply
Return Type:
int
Returns: The maximum air supply of the entity.
// ItemEntity.maxAirSupply() as int;myItemEntity.maxAirSupply();
Return Type:
int
// ItemEntity.maxFallDistance as intmyItemEntity.maxFallDistance
Return Type:
int
Returns: The maximum fall distance of the entity.
// ItemEntity.maxFallDistance() as int;myItemEntity.maxFallDistance();
Return Type:
int
myItemEntity.moveRelative(myFloat, myVec3);
// ItemEntity.moveTo(x as double, y as double, z as double);myItemEntity.moveTo(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to move the entity to. y: double
Type: double
- The y position to move the entity to. z: double
Type: double
- The z position to move the entity to. myItemEntity.moveTo(myBlockPos, myFloat, myFloat);
// ItemEntity.moveTo(x as double, y as double, z as double, yaw as float, pitch as float);myItemEntity.moveTo(myDouble, myDouble, myDouble, myFloat, myFloat);
Parameters:
x: double
Type: double
- The x position to move the entity to. y: double
Type: double
- The y position to move the entity to. z: double
Type: double
- The z position to move the entity to. yaw: float
Type: float
- The yaw to move the entity to. pitch: float
Type: float
- The pitch to move the entity to. // ItemEntity.onGround as boolmyItemEntity.onGround
Return Type:
bool
// ItemEntity.percentFrozen as floatmyItemEntity.percentFrozen
Return Type:
float
Returns: The percent the entity is frozen.
// ItemEntity.percentFrozen() as float;myItemEntity.percentFrozen();
Return Type:
float
// ItemEntity.pistonPushReaction as PushReactionmyItemEntity.pistonPushReaction
Return Type:
PushReaction
Returns: The piston push reaction of the entity.
myItemEntity.pistonPushReaction();
Return Type:
PushReaction
myItemEntity.playSound(mySoundEvent, myFloat, myFloat);
Parameters:
volume: float
Type: float
- The volume of the sound. pitch: float
Type: float
- The pitch of the sound. // ItemEntity.registryName as ResourceLocationmyItemEntity.registryName
Return Type:
ResourceLocation
Returns: The registry name of the entity.
myItemEntity.registryName();
Return Type:
ResourceLocation
Returns: true if the tag was removed.
// ItemEntity.removeTag(tagName as string) as bool;myItemEntity.removeTag(myString);
Parameters:
tagName: string
Type: string
- The name of the tag to remove.
Return Type:
bool
// ItemEntity.removeVehicle();myItemEntity.removeVehicle();
// ItemEntity.setAirSupply(air as int);myItemEntity.setAirSupply(myInt);
Parameters:
air: int
Type: int
- The new air supply of the entity. myItemEntity.setAttachmentData<T>(myAttachmentType, myT);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
data: T
Type: T
Return Type:
T?
myItemEntity.setAttachmentData<T>(mySupplier, myT);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
data: T
Type: T
Return Type:
T?
// ItemEntity.setCustomNameVisible(visible as bool);myItemEntity.setCustomNameVisible(myBool);
Parameters:
visible: bool
Type: bool
- true if the custom name should be visible. // ItemEntity.setDefaultPickUpDelay();myItemEntity.setDefaultPickUpDelay();
// ItemEntity.setDeltaMovement(xDelta as double, yDelta as double, zDelta as double);myItemEntity.setDeltaMovement(myDouble, myDouble, myDouble);
Parameters:
xDelta: double
Type: double
- The x delta movement to set. yDelta: double
Type: double
- The y delta movement to set. zDelta: double
Type: double
- The z delta movement to set. // ItemEntity.setGlowingTag(glowing as bool);myItemEntity.setGlowingTag(myBool);
Parameters:
glowing: bool
Type: bool
- true if the entity should be glowing. // ItemEntity.setInvisible(invisible as bool);myItemEntity.setInvisible(myBool);
Parameters:
invisible: bool
Type: bool
- true if the entity should be invisible. // ItemEntity.setInvulnerable(invulnerable as bool);myItemEntity.setInvulnerable(myBool);
Parameters:
invulnerable: bool
Type: bool
- true if the entity should be invulnerable. // ItemEntity.setIsInPowderSnow(inPowderSnow as bool);myItemEntity.setIsInPowderSnow(myBool);
Parameters:
inPowderSnow: bool
Type: bool
- Whether the entity is in powder snow. // ItemEntity.setNeverPickUp();myItemEntity.setNeverPickUp();
// ItemEntity.setNoGravity(noGravity as bool);myItemEntity.setNoGravity(myBool);
Parameters:
noGravity: bool
Type: bool
- The no gravity state to set the entity to. // ItemEntity.setNoPickUpDelay();myItemEntity.setNoPickUpDelay();
// ItemEntity.setOldPosAndRot();myItemEntity.setOldPosAndRot();
// ItemEntity.setOnGround(onGround as bool);myItemEntity.setOnGround(myBool);
Parameters:
onGround: bool
Type: bool
- The on ground state to set the entity to. // ItemEntity.setPickUpDelay(ticks as int);myItemEntity.setPickUpDelay(myInt);
Parameters:
ticks: int
Type: int
- The number of ticks to delay the pickup for. // ItemEntity.setPortalCooldown();myItemEntity.setPortalCooldown();
// ItemEntity.setPos(x as double, y as double, z as double);myItemEntity.setPos(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to set the entity to. y: double
Type: double
- The y position to set the entity to. z: double
Type: double
- The z position to set the entity to. // ItemEntity.setPosRaw(x as double, y as double, z as double);myItemEntity.setPosRaw(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x coordinate to set the position to. y: double
Type: double
- The y coordinate to set the position to. z: double
Type: double
- The z coordinate to set the position to. myItemEntity.setRemoved(myRemovalReason);
Parameters:
// ItemEntity.setShiftKeyDown(keyDown as bool);myItemEntity.setShiftKeyDown(myBool);
Parameters:
keyDown: bool
Type: bool
- true if the shift key is down. // ItemEntity.setSilent(silent as bool);myItemEntity.setSilent(myBool);
Parameters:
silent: bool
Type: bool
- The silent state to set the entity to. // ItemEntity.setSprinting(sprinting as bool);myItemEntity.setSprinting(myBool);
Parameters:
sprinting: bool
Type: bool
- true if the entity should be sprinting. // ItemEntity.setSwimming(swimming as bool);myItemEntity.setSwimming(myBool);
Parameters:
swimming: bool
Type: bool
- true if the entity should be swimming. // ItemEntity.setTicksFrozen(ticks as int);myItemEntity.setTicksFrozen(myInt);
Parameters:
ticks: int
Type: int
- The new number of ticks the entity has been frozen. // ItemEntity.shouldBeSaved as boolmyItemEntity.shouldBeSaved
Return Type:
bool
Returns: true if the entity should be saved.
// ItemEntity.shouldBeSaved() as bool;myItemEntity.shouldBeSaved();
Return Type:
bool
// ItemEntity.shouldInformAdmins as boolmyItemEntity.shouldInformAdmins
Return Type:
bool
Returns: True if the commands from this source should inform admins, false otherwise.
// ItemEntity.shouldInformAdmins() as bool;myItemEntity.shouldInformAdmins();
Return Type:
bool
// ItemEntity.shouldShowName as boolmyItemEntity.shouldShowName
Return Type:
bool
Returns: true if the entity should show its name.
// ItemEntity.shouldShowName() as bool;myItemEntity.shouldShowName();
Return Type:
bool
// ItemEntity.showVehicleHealth as boolmyItemEntity.showVehicleHealth
Return Type:
bool
Returns: true if the entity should show vehicle health.
// ItemEntity.showVehicleHealth() as bool;myItemEntity.showVehicleHealth();
Return Type:
bool
SoundSource
of the entity.// ItemEntity.soundSource as SoundSourcemyItemEntity.soundSource
Return Type:
SoundSource
SoundSource
of the entity.Returns: The sound source of the entity.
myItemEntity.soundSource();
Return Type:
SoundSource
Returns: true if the entity started riding.
myItemEntity.startRiding(myEntity, myBool);
Parameters:
Return Type:
bool
// ItemEntity.stopRiding();myItemEntity.stopRiding();
// ItemEntity.stringUUID as stringmyItemEntity.stringUUID
Return Type:
string
Returns: The UUID of the entity as a string.
// ItemEntity.stringUUID() as string;myItemEntity.stringUUID();
Return Type:
string
These tags are arbitrary strings that can be attached to an entity. A single entity is limited to 1024.
// ItemEntity.tags as Set<string>myItemEntity.tags
Return Type:
Set<string>
These tags are arbitrary strings that can be attached to an entity. A single entity is limited to 1024.
Returns: The tags of the entity.
// ItemEntity.tags() as Set<string>;myItemEntity.tags();
Return Type:
Set<string>
// ItemEntity.teamColor as intmyItemEntity.teamColor
Return Type:
int
Returns: The team color of the entity.
// ItemEntity.teamColor() as int;myItemEntity.teamColor();
Return Type:
int
// ItemEntity.teleportTo(x as double, y as double, z as double);myItemEntity.teleportTo(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x coordinate to teleport to. y: double
Type: double
- The y coordinate to teleport to. z: double
Type: double
- The z coordinate to teleport to. // ItemEntity.ticksFrozen as intmyItemEntity.ticksFrozen
Return Type:
int
Returns: The number of ticks the entity has been frozen.
// ItemEntity.ticksFrozen() as int;myItemEntity.ticksFrozen();
Return Type:
int
// ItemEntity.ticksRequiredToFreeze as intmyItemEntity.ticksRequiredToFreeze
Return Type:
int
Returns: The number of ticks required to freeze the entity.
// ItemEntity.ticksRequiredToFreeze() as int;myItemEntity.ticksRequiredToFreeze();
Return Type:
int
// ItemEntity.turn(yaw as double, pitch as double);myItemEntity.turn(myDouble, myDouble);
Parameters:
yaw: double
Type: double
- The yaw to turn the entity to. pitch: double
Type: double
- The pitch to turn the entity to. EntityType
of the entity.Returns: The EntityType
of the entity.
myItemEntity.type();
Return Type:
EntityType<Entity>
// ItemEntity.unRide();myItemEntity.unRide();
// ItemEntity.uuid as UUIDmyItemEntity.uuid
Return Type:
UUID
Returns: The UUID of the entity.
// ItemEntity.uuid() as UUID;myItemEntity.uuid();
Return Type:
UUID
// ItemEntity.x as doublemyItemEntity.x
Return Type:
double
Returns: The x coordinate of the entity.
// ItemEntity.x() as double;myItemEntity.x();
Return Type:
double
// ItemEntity.y as doublemyItemEntity.y
Return Type:
double
Returns: The y coordinate of the entity.
// ItemEntity.y() as double;myItemEntity.y();
Return Type:
double
// ItemEntity.z as doublemyItemEntity.z
Return Type:
double
Returns: The z coordinate of the entity.
// ItemEntity.z() as double;myItemEntity.z();
Return Type:
double