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
// ItemEntity.acceptsFailure() as bool;myItemEntity.acceptsFailure();
Return Type:
bool
// ItemEntity.acceptsSuccess as boolmyItemEntity.acceptsSuccess
Return Type:
bool
// ItemEntity.acceptsSuccess() as bool;myItemEntity.acceptsSuccess();
Return Type:
bool
// ItemEntity.addTag(tagName as string) as bool;myItemEntity.addTag(myString);Parameters:
tagName: string Type: string
Return Type:
bool
// ItemEntity.airSupply as intmyItemEntity.airSupply
Return Type:
int
// ItemEntity.airSupply() as int;myItemEntity.airSupply();
Return Type:
int
// ItemEntity.alwaysAccepts as boolmyItemEntity.alwaysAccepts
Return Type:
bool
// ItemEntity.alwaysAccepts() as bool;myItemEntity.alwaysAccepts();
Return Type:
bool
// ItemEntity.bbHeight as floatmyItemEntity.bbHeight
Return Type:
float
// ItemEntity.bbHeight() as float;myItemEntity.bbHeight();
Return Type:
float
// ItemEntity.bbWidth as floatmyItemEntity.bbWidth
Return Type:
float
// ItemEntity.bbWidth() as float;myItemEntity.bbWidth();
Return Type:
float
// ItemEntity.blockX as intmyItemEntity.blockX
Return Type:
int
// ItemEntity.blockX() as int;myItemEntity.blockX();
Return Type:
int
// ItemEntity.blockY as intmyItemEntity.blockY
Return Type:
int
// ItemEntity.blockY() as int;myItemEntity.blockY();
Return Type:
int
// ItemEntity.blockZ as intmyItemEntity.blockZ
Return Type:
int
// ItemEntity.blockZ() as int;myItemEntity.blockZ();
Return Type:
int
// ItemEntity.canBeCollidedWith as boolmyItemEntity.canBeCollidedWith
Return Type:
bool
// ItemEntity.canBeCollidedWith() as bool;myItemEntity.canBeCollidedWith();
Return Type:
bool
// ItemEntity.canFreeze as boolmyItemEntity.canFreeze
Return Type:
bool
// ItemEntity.canFreeze() as bool;myItemEntity.canFreeze();
Return Type:
bool
// ItemEntity.clearFire();myItemEntity.clearFire();// ItemEntity.dampensVibrations as boolmyItemEntity.dampensVibrations
Return Type:
bool
// ItemEntity.dampensVibrations() as bool;myItemEntity.dampensVibrations();
Return Type:
bool
// ItemEntity.dimensionChangingDelay as intmyItemEntity.dimensionChangingDelay
Return Type:
int
// ItemEntity.dimensionChangingDelay() as int;myItemEntity.dimensionChangingDelay();
Return Type:
int
// ItemEntity.discard();myItemEntity.discard();// ItemEntity.dismountsUnderwater as boolmyItemEntity.dismountsUnderwater
Return Type:
bool
// ItemEntity.distanceToSqr(x as double, y as double, z as double) as double;myItemEntity.distanceToSqr(myDouble, myDouble, myDouble);Parameters:
x: double Type: double y: double Type: double z: double Type: double
Return Type:
double
// ItemEntity.ejectPassengers();myItemEntity.ejectPassengers();// ItemEntity.eyeHeight as floatmyItemEntity.eyeHeight
Return Type:
float
// ItemEntity.eyeHeight() as float;myItemEntity.eyeHeight();
Return Type:
float
// ItemEntity.eyeY as doublemyItemEntity.eyeY
Return Type:
double
// ItemEntity.eyeY() as double;myItemEntity.eyeY();
Return Type:
double
// ItemEntity.fireImmune as boolmyItemEntity.fireImmune
Return Type:
bool
// 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 // ItemEntity.fluidJumpThreshold as doublemyItemEntity.fluidJumpThreshold
Return Type:
double
// 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
// ItemEntity.getX(scale as double) as double;myItemEntity.getX(myDouble);Parameters:
scale: double Type: double
Return Type:
double
// ItemEntity.getY(scale as double) as double;myItemEntity.getY(myDouble);Parameters:
scale: double Type: double
Return Type:
double
// ItemEntity.getZ(scale as double) as double;myItemEntity.getZ(myDouble);Parameters:
scale: double Type: double
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
// 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
// ItemEntity.hasExactlyOnePlayerPassenger() as bool;myItemEntity.hasExactlyOnePlayerPassenger();
Return Type:
bool
// ItemEntity.hasGlowingTag as boolmyItemEntity.hasGlowingTag
Return Type:
bool
// ItemEntity.hasGlowingTag() as bool;myItemEntity.hasGlowingTag();
Return Type:
bool
// ItemEntity.hasPickupDelay as boolmyItemEntity.hasPickupDelay
Return Type:
bool
// ItemEntity.hasPickupDelay() as bool;myItemEntity.hasPickupDelay();
Return Type:
bool
myItemEntity.hurt(myDamageSource, myFloat);Parameters:
source: DamageSource Type: DamageSource amount: float Type: float
Return Type:
bool
// ItemEntity.id as intmyItemEntity.id
Return Type:
int
// ItemEntity.id() as int;myItemEntity.id();
Return Type:
int
// ItemEntity.inBlockState as BlockStatemyItemEntity.inBlockState
Return Type:
BlockState
// ItemEntity.isAlive as boolmyItemEntity.isAlive
Return Type:
bool
// ItemEntity.isAlive() as bool;myItemEntity.isAlive();
Return Type:
bool
// ItemEntity.isAlwaysTicking as boolmyItemEntity.isAlwaysTicking
Return Type:
bool
// ItemEntity.isAlwaysTicking() as bool;myItemEntity.isAlwaysTicking();
Return Type:
bool
// ItemEntity.isAttackable as boolmyItemEntity.isAttackable
Return Type:
bool
// ItemEntity.isAttackable() as bool;myItemEntity.isAttackable();
Return Type:
bool
myItemEntity.isColliding(myBlockPos, myBlockState);Parameters:
state: BlockState Type: BlockState
Return Type:
bool
// ItemEntity.isCrouching as boolmyItemEntity.isCrouching
Return Type:
bool
// ItemEntity.isCrouching() as bool;myItemEntity.isCrouching();
Return Type:
bool
// ItemEntity.isCurrentlyGlowing as boolmyItemEntity.isCurrentlyGlowing
Return Type:
bool
// ItemEntity.isCurrentlyGlowing() as bool;myItemEntity.isCurrentlyGlowing();
Return Type:
bool
// ItemEntity.isCustomNameVisible as boolmyItemEntity.isCustomNameVisible
Return Type:
bool
// ItemEntity.isCustomNameVisible() as bool;myItemEntity.isCustomNameVisible();
Return Type:
bool
// ItemEntity.isDescending as boolmyItemEntity.isDescending
Return Type:
bool
// ItemEntity.isDescending() as bool;myItemEntity.isDescending();
Return Type:
bool
// ItemEntity.isDiscrete as boolmyItemEntity.isDiscrete
Return Type:
bool
// ItemEntity.isDiscrete() as bool;myItemEntity.isDiscrete();
Return Type:
bool
// ItemEntity.isFree(x as double, y as double, z as double) as bool;myItemEntity.isFree(myDouble, myDouble, myDouble);Parameters:
x: double Type: double y: double Type: double z: double Type: double
Return Type:
bool
// ItemEntity.isFullyFrozen as boolmyItemEntity.isFullyFrozen
Return Type:
bool
// ItemEntity.isFullyFrozen() as bool;myItemEntity.isFullyFrozen();
Return Type:
bool
// ItemEntity.isInLava as boolmyItemEntity.isInLava
Return Type:
bool
// ItemEntity.isInLava() as bool;myItemEntity.isInLava();
Return Type:
bool
// ItemEntity.isInvisible as boolmyItemEntity.isInvisible
Return Type:
bool
// ItemEntity.isInvisible() as bool;myItemEntity.isInvisible();
Return Type:
bool
// ItemEntity.isInvulnerable as boolmyItemEntity.isInvulnerable
Return Type:
bool
// ItemEntity.isInvulnerable() as bool;myItemEntity.isInvulnerable();
Return Type:
bool
myItemEntity.isInvulnerableTo(myDamageSource);Parameters:
source: DamageSource Type: DamageSource
Return Type:
bool
// ItemEntity.isInWall as boolmyItemEntity.isInWall
Return Type:
bool
// ItemEntity.isInWall() as bool;myItemEntity.isInWall();
Return Type:
bool
// ItemEntity.isInWater as boolmyItemEntity.isInWater
Return Type:
bool
// ItemEntity.isInWater() as bool;myItemEntity.isInWater();
Return Type:
bool
// ItemEntity.isInWaterOrBubble as boolmyItemEntity.isInWaterOrBubble
Return Type:
bool
// ItemEntity.isInWaterOrBubble() as bool;myItemEntity.isInWaterOrBubble();
Return Type:
bool
// ItemEntity.isInWaterOrRain as boolmyItemEntity.isInWaterOrRain
Return Type:
bool
// ItemEntity.isInWaterOrRain() as bool;myItemEntity.isInWaterOrRain();
Return Type:
bool
// ItemEntity.isInWaterRainOrBubble as boolmyItemEntity.isInWaterRainOrBubble
Return Type:
bool
// ItemEntity.isInWaterRainOrBubble() as bool;myItemEntity.isInWaterRainOrBubble();
Return Type:
bool
// ItemEntity.isNoGravity as boolmyItemEntity.isNoGravity
Return Type:
bool
// ItemEntity.isNoGravity() as bool;myItemEntity.isNoGravity();
Return Type:
bool
// ItemEntity.isOnFire as boolmyItemEntity.isOnFire
Return Type:
bool
// ItemEntity.isOnFire() as bool;myItemEntity.isOnFire();
Return Type:
bool
// ItemEntity.isOnPortalCooldown as boolmyItemEntity.isOnPortalCooldown
Return Type:
bool
// ItemEntity.isOnPortalCooldown() as bool;myItemEntity.isOnPortalCooldown();
Return Type:
bool
// ItemEntity.isPassenger as boolmyItemEntity.isPassenger
Return Type:
bool
// ItemEntity.isPassenger() as bool;myItemEntity.isPassenger();
Return Type:
bool
// ItemEntity.isPickable as boolmyItemEntity.isPickable
Return Type:
bool
// ItemEntity.isPickable() as bool;myItemEntity.isPickable();
Return Type:
bool
// ItemEntity.isPushable as boolmyItemEntity.isPushable
Return Type:
bool
// ItemEntity.isPushable() as bool;myItemEntity.isPushable();
Return Type:
bool
// ItemEntity.isPushedByFluid as boolmyItemEntity.isPushedByFluid
Return Type:
bool
// ItemEntity.isPushedByFluid() as bool;myItemEntity.isPushedByFluid();
Return Type:
bool
// ItemEntity.isRemoved as boolmyItemEntity.isRemoved
Return Type:
bool
// ItemEntity.isRemoved() as bool;myItemEntity.isRemoved();
Return Type:
bool
// ItemEntity.isShiftKeyDown as boolmyItemEntity.isShiftKeyDown
Return Type:
bool
// ItemEntity.isShiftKeyDown() as bool;myItemEntity.isShiftKeyDown();
Return Type:
bool
// ItemEntity.isSilent as boolmyItemEntity.isSilent
Return Type:
bool
// ItemEntity.isSilent() as bool;myItemEntity.isSilent();
Return Type:
bool
// ItemEntity.isSpectator as boolmyItemEntity.isSpectator
Return Type:
bool
// ItemEntity.isSpectator() as bool;myItemEntity.isSpectator();
Return Type:
bool
// ItemEntity.isSprinting as boolmyItemEntity.isSprinting
Return Type:
bool
// ItemEntity.isSprinting() as bool;myItemEntity.isSprinting();
Return Type:
bool
// ItemEntity.isSteppingCarefully as boolmyItemEntity.isSteppingCarefully
Return Type:
bool
// ItemEntity.isSteppingCarefully() as bool;myItemEntity.isSteppingCarefully();
Return Type:
bool
// ItemEntity.isSuppressingBounce as boolmyItemEntity.isSuppressingBounce
Return Type:
bool
// ItemEntity.isSuppressingBounce() as bool;myItemEntity.isSuppressingBounce();
Return Type:
bool
// ItemEntity.isSwimming as boolmyItemEntity.isSwimming
Return Type:
bool
// ItemEntity.isSwimming() as bool;myItemEntity.isSwimming();
Return Type:
bool
// ItemEntity.isUnderWater as boolmyItemEntity.isUnderWater
Return Type:
bool
// ItemEntity.isUnderWater() as bool;myItemEntity.isUnderWater();
Return Type:
bool
// ItemEntity.isVehicle as boolmyItemEntity.isVehicle
Return Type:
bool
// ItemEntity.isVehicle() as bool;myItemEntity.isVehicle();
Return Type:
bool
// ItemEntity.isVisuallyCrawling as boolmyItemEntity.isVisuallyCrawling
Return Type:
bool
// ItemEntity.isVisuallyCrawling() as bool;myItemEntity.isVisuallyCrawling();
Return Type:
bool
// ItemEntity.isVisuallySwimming as boolmyItemEntity.isVisuallySwimming
Return Type:
bool
// ItemEntity.isVisuallySwimming() as bool;myItemEntity.isVisuallySwimming();
Return Type:
bool
// ItemEntity.item as IItemStackmyItemEntity.item
Return Type:
IItemStack
myItemEntity.item = myIItemStack;Parameters:
Returns: The IItemStack inside this ItemEntity.
myItemEntity.item();
Return Type:
IItemStack
myItemEntity.item(<item:minecraft:diamond>);Parameters:
// ItemEntity.kill();myItemEntity.kill();// ItemEntity.lavaHurt();myItemEntity.lavaHurt();// ItemEntity.maxAirSupply as intmyItemEntity.maxAirSupply
Return Type:
int
// ItemEntity.maxAirSupply() as int;myItemEntity.maxAirSupply();
Return Type:
int
// ItemEntity.maxFallDistance as intmyItemEntity.maxFallDistance
Return Type:
int
// ItemEntity.maxFallDistance() as int;myItemEntity.maxFallDistance();
Return Type:
int
// ItemEntity.moveTo(x as double, y as double, z as double);myItemEntity.moveTo(myDouble, myDouble, myDouble);Parameters:
x: double Type: double y: double Type: double z: double Type: double // 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 y: double Type: double z: double Type: double yaw: float Type: float pitch: float Type: float // ItemEntity.onGround as boolmyItemEntity.onGround
Return Type:
bool
// ItemEntity.percentFrozen as floatmyItemEntity.percentFrozen
Return Type:
float
// ItemEntity.percentFrozen() as float;myItemEntity.percentFrozen();
Return Type:
float
// ItemEntity.pistonPushReaction as PushReactionmyItemEntity.pistonPushReaction
Return Type:
PushReaction
myItemEntity.playSound(mySoundEvent, myFloat, myFloat);Parameters:
// ItemEntity.portalWaitTime as intmyItemEntity.portalWaitTime
Return Type:
int
// ItemEntity.portalWaitTime() as int;myItemEntity.portalWaitTime();
Return Type:
int
// ItemEntity.registryName as ResourceLocationmyItemEntity.registryName
Return Type:
ResourceLocation
// ItemEntity.removeTag(tagName as string) as bool;myItemEntity.removeTag(myString);Parameters:
tagName: string Type: string
Return Type:
bool
// ItemEntity.removeVehicle();myItemEntity.removeVehicle();// ItemEntity.setAirSupply(air as int);myItemEntity.setAirSupply(myInt);Parameters:
air: int Type: int 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 // 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 yDelta: double Type: double zDelta: double Type: double // ItemEntity.setGlowingTag(glowing as bool);myItemEntity.setGlowingTag(myBool);Parameters:
glowing: bool Type: bool // ItemEntity.setInvisible(invisible as bool);myItemEntity.setInvisible(myBool);Parameters:
invisible: bool Type: bool // ItemEntity.setInvulnerable(invulnerable as bool);myItemEntity.setInvulnerable(myBool);Parameters:
invulnerable: bool Type: bool // ItemEntity.setIsInPowderSnow(inPowderSnow as bool);myItemEntity.setIsInPowderSnow(myBool);Parameters:
inPowderSnow: bool Type: bool // ItemEntity.setNeverPickUp();myItemEntity.setNeverPickUp();// ItemEntity.setNoGravity(noGravity as bool);myItemEntity.setNoGravity(myBool);Parameters:
noGravity: bool Type: bool // ItemEntity.setNoPickUpDelay();myItemEntity.setNoPickUpDelay();// ItemEntity.setOldPosAndRot();myItemEntity.setOldPosAndRot();// ItemEntity.setOnGround(onGround as bool);myItemEntity.setOnGround(myBool);Parameters:
onGround: bool Type: bool // ItemEntity.setPickUpDelay(ticks as int);myItemEntity.setPickUpDelay(myInt);Parameters:
ticks: int Type: int // 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 y: double Type: double z: double Type: double // ItemEntity.setPosRaw(x as double, y as double, z as double);myItemEntity.setPosRaw(myDouble, myDouble, myDouble);Parameters:
x: double Type: double y: double Type: double z: double Type: double myItemEntity.setRemoved(myRemovalReason);Parameters:
var1: RemovalReason Type: RemovalReason // ItemEntity.setShiftKeyDown(keyDown as bool);myItemEntity.setShiftKeyDown(myBool);Parameters:
keyDown: bool Type: bool // ItemEntity.setSilent(silent as bool);myItemEntity.setSilent(myBool);Parameters:
silent: bool Type: bool // ItemEntity.setSprinting(sprinting as bool);myItemEntity.setSprinting(myBool);Parameters:
sprinting: bool Type: bool // ItemEntity.setSwimming(swimming as bool);myItemEntity.setSwimming(myBool);Parameters:
swimming: bool Type: bool // ItemEntity.setTicksFrozen(ticks as int);myItemEntity.setTicksFrozen(myInt);Parameters:
ticks: int Type: int // ItemEntity.shouldBeSaved as boolmyItemEntity.shouldBeSaved
Return Type:
bool
// ItemEntity.shouldBeSaved() as bool;myItemEntity.shouldBeSaved();
Return Type:
bool
// ItemEntity.shouldInformAdmins as boolmyItemEntity.shouldInformAdmins
Return Type:
bool
// ItemEntity.shouldInformAdmins() as bool;myItemEntity.shouldInformAdmins();
Return Type:
bool
// ItemEntity.shouldShowName as boolmyItemEntity.shouldShowName
Return Type:
bool
// ItemEntity.shouldShowName() as bool;myItemEntity.shouldShowName();
Return Type:
bool
// ItemEntity.showVehicleHealth as boolmyItemEntity.showVehicleHealth
Return Type:
bool
// ItemEntity.showVehicleHealth() as bool;myItemEntity.showVehicleHealth();
Return Type:
bool
// ItemEntity.soundSource as SoundSourcemyItemEntity.soundSource
Return Type:
SoundSource
// ItemEntity.stopRiding();myItemEntity.stopRiding();// ItemEntity.stringUUID as stringmyItemEntity.stringUUID
Return Type:
string
// ItemEntity.stringUUID() as string;myItemEntity.stringUUID();
Return Type:
string
// ItemEntity.tags as Set<string>myItemEntity.tags
Return Type:
Set<string>
// ItemEntity.tags() as Set<string>;myItemEntity.tags();
Return Type:
Set<string>
// ItemEntity.teamColor as intmyItemEntity.teamColor
Return Type:
int
// 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 y: double Type: double z: double Type: double // ItemEntity.ticksFrozen as intmyItemEntity.ticksFrozen
Return Type:
int
// ItemEntity.ticksFrozen() as int;myItemEntity.ticksFrozen();
Return Type:
int
// ItemEntity.ticksRequiredToFreeze as intmyItemEntity.ticksRequiredToFreeze
Return Type:
int
// 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 pitch: double Type: double myItemEntity.type
Return Type:
EntityType<Entity>
// ItemEntity.unRide();myItemEntity.unRide();// ItemEntity.uuid as UUIDmyItemEntity.uuid
Return Type:
UUID
// ItemEntity.uuid() as UUID;myItemEntity.uuid();
Return Type:
UUID
// ItemEntity.x as doublemyItemEntity.x
Return Type:
double
// ItemEntity.x() as double;myItemEntity.x();
Return Type:
double
// ItemEntity.y as doublemyItemEntity.y
Return Type:
double
// ItemEntity.y() as double;myItemEntity.y();
Return Type:
double
// ItemEntity.z as doublemyItemEntity.z
Return Type:
double
// ItemEntity.z() as double;myItemEntity.z();
Return Type:
double