net.minecraft.world.entity.item

public class ItemEntity

extends Entity implements TraceableEntity

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, TraceableEntity

cmb
net.minecraft.world.entity.item.ItemEntity
net.minecraft.class_1542
net.minecraft.entity.ItemEntity
net.minecraft.world.entity.item.EntityItem

Field summary

Modifier and TypeField
private static final EntityDataAccessor<ItemStack>
c
DATA_ITEM
field_7199
STACK
private static final float
d
FLOAT_HEIGHT
field_48703
field_48703
public static final float
a
EYE_HEIGHT
field_48702
field_48702
private static final int
e
LIFETIME
field_30456
DESPAWN_AGE
private static final int
f
INFINITE_PICKUP_DELAY
field_30457
CANNOT_PICK_UP_DELAY
private static final int
g
INFINITE_LIFETIME
field_30458
NEVER_DESPAWN_AGE
private int
h
age
field_7204
itemAge
private int
i
pickupDelay
field_7202
pickupDelay
private int
j
health
field_7201
health
private UUID
k
thrower
field_7200
throwerUuid
private Entity
l
cachedThrower
field_46653
thrower
private UUID
m
target
field_41893
owner
public final float
b
bobOffs
field_7203
uniqueOffset

Constructor summary

ModifierConstructor
public (EntityType<? extends ItemEntity> arg0, Level arg1)
public (Level world, double x, double y, double z, ItemStack stack)
public (Level world, double x, double y, double z, ItemStack stack, double velocityX, double velocityY, double velocityZ)
private (ItemEntity entity)

Method summary

Modifier and TypeMethod
public boolean
bh()
dampensVibrations()
method_33189()
occludeVibrationSignals()
public Entity
p()
getOwner()
method_24921()
getOwner()
public void
x(bvk arg0)
restoreFrom(Entity arg0)
method_5878(class_1297 arg0)
copyFrom(Entity arg0)
protected Entity$MovementEmission
bg()
getMovementEmission()
method_33570()
getMoveEffect()
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected double
bd()
getDefaultGravity()
method_7490()
getGravity()
public void
h()
tick()
method_5773()
tick()
public BlockPos
aQ()
getBlockPosBelowThatAffectsMyMovement()
method_23314()
getVelocityAffectingPos()
private void
A()
setUnderwaterMovement()
method_6974()
applyWaterBuoyancy()
private void
B()
setUnderLavaMovement()
method_24348()
applyLavaBuoyancy()
private void
h(double arg0)
setFluidMovement(double arg0)
method_64460(double arg0)
applyBuoyancy(double horizontalMultiplier)
private void
C()
mergeWithNeighbours()
method_6973()
tryMerge()
private boolean
D()
isMergable()
method_20397()
canMerge()
private void
a(cmb arg0)
tryToMerge(ItemEntity arg0)
method_6972(class_1542 arg0)
tryMerge(ItemEntity other)
public static boolean
a(cxp arg0, cxp arg1)
areMergable(ItemStack arg0, ItemStack arg1)
method_24017(class_1799 arg0, class_1799 arg1)
canMerge(ItemStack stack1, ItemStack stack2)
public static ItemStack
a(cxp arg0, cxp arg1, int arg2)
merge(ItemStack arg0, ItemStack arg1, int arg2)
method_24018(class_1799 arg0, class_1799 arg1, int arg2)
merge(ItemStack stack1, ItemStack stack2, int maxCount)
private static void
a(cmb arg0, cxp arg1, cxp arg2)
merge(ItemEntity arg0, ItemStack arg1, ItemStack arg2)
method_24016(class_1542 arg0, class_1799 arg1, class_1799 arg2)
merge(ItemEntity targetEntity, ItemStack stack1, ItemStack stack2)
private static void
a(cmb arg0, cxp arg1, cmb arg2, cxp arg3)
merge(ItemEntity arg0, ItemStack arg1, ItemEntity arg2, ItemStack arg3)
method_18006(class_1542 arg0, class_1799 arg1, class_1542 arg2, class_1799 arg3)
merge(ItemEntity targetEntity, ItemStack targetStack, ItemEntity sourceEntity, ItemStack sourceStack)
public boolean
bi()
fireImmune()
method_5753()
isFireImmune()
protected boolean
aF()
shouldPlayLavaHurtSound()
method_64270()
shouldPlayBurnSoundInLava()
public final boolean
b(bua arg0)
hurtClient(DamageSource arg0)
method_5643(class_1282 arg0)
clientDamage(DamageSource arg0)
public final boolean
a(ash arg0, bua arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public boolean
a(dha arg0)
ignoreExplosion(Explosion arg0)
method_5659(class_1927 arg0)
isImmuneToExplosion(Explosion arg0)
public void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public void
a_(cpx arg0)
playerTouch(Player arg0)
method_5694(class_1657 arg0)
onPlayerCollision(PlayerEntity arg0)
public Component
al()
getName()
method_5477()
getName()
public boolean
cB()
isAttackable()
method_5732()
isAttackable()
public Entity
b(eux arg0)
teleport(TeleportTransition arg0)
method_5731(class_5454 arg0)
teleportTo(TeleportTarget arg0)
public ItemStack
l()
getItem()
method_6983()
getStack()
public void
a(cxp arg0)
setItem(ItemStack arg0)
method_6979(class_1799 arg0)
setStack(ItemStack stack)
public void
a(alc<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public void
b(UUID arg0)
setTarget(UUID arg0)
method_48349(UUID arg0)
setOwner(UUID owner)
public void
b(bvk arg0)
setThrower(Entity arg0)
method_6981(class_1297 arg0)
setThrower(Entity thrower)
public int
m()
getAge()
method_6985()
getItemAge()
public void
s()
setDefaultPickUpDelay()
method_6988()
setToDefaultPickupDelay()
public void
t()
setNoPickUpDelay()
method_6975()
resetPickupDelay()
public void
u()
setNeverPickUp()
method_6989()
setPickupDelayInfinite()
public void
b(int arg0)
setPickUpDelay(int arg0)
method_6982(int arg0)
setPickupDelay(int pickupDelay)
public boolean
v()
hasPickUpDelay()
method_6977()
cannotPickup()
public void
w()
setUnlimitedLifetime()
method_35190()
setNeverDespawn()
public void
x()
setExtendedLifetime()
method_6976()
setCovetedItem()
public void
y()
makeFakeItem()
method_6987()
setDespawnImmediately()
public static float
f(float arg0, float arg1)
getSpin(float arg0, float arg1)
method_27314(float arg0, float arg1)
getRotation(float arg0, float arg1)
public ItemEntity
z()
copy()
method_29271()
copy()
public SoundSource
dn()
getSoundSource()
method_5634()
getSoundCategory()
public float
dN()
getVisualRotationYInDegrees()
method_43078()
getBodyYaw()
public SlotAccess
a_(int arg0)
getSlot(int arg0)
method_32318(int arg0)
getStackReference(int arg0)