net.minecraft.world.entity.item

public class ItemEntity

extends Entity implements TraceableEntity

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, CommandSource, ScoreHolder, TraceableEntity

cjh
net.minecraft.world.entity.item.ItemEntity
net.minecraft.class_1542
net.minecraft.entity.ItemEntity
net.minecraft.src.C_976_
net.minecraft.world.entity.item.EntityItem

Field summary

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

Constructor summary

ModifierConstructor
public (EntityType<? extends ItemEntity> p_31992_, 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
bd()
dampensVibrations()
method_33189()
occludeVibrationSignals()
m_213854_()
public Entity
s()
getOwner()
method_24921()
getOwner()
m_19749_()
public void
w(bsr arg0)
restoreFrom(Entity arg0)
method_5878(class_1297 arg0)
copyFrom(Entity arg0)
m_20361_(C_507_ arg0)
protected Entity$MovementEmission
bc()
getMovementEmission()
method_33570()
getMoveEffect()
m_142319_()
protected void
a(aka$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
protected double
aZ()
getDefaultGravity()
method_7490()
getGravity()
m_319564_()
public void
l()
tick()
method_5773()
tick()
m_8119_()
public BlockPos
aL()
getBlockPosBelowThatAffectsMyMovement()
method_23314()
getVelocityAffectingPos()
m_20099_()
private void
D()
setUnderwaterMovement()
method_6974()
applyWaterBuoyancy()
m_32067_()
private void
E()
setUnderLavaMovement()
method_24348()
applyLavaBuoyancy()
m_32068_()
private void
F()
mergeWithNeighbours()
method_6973()
tryMerge()
m_32069_()
private boolean
H()
isMergable()
method_20397()
canMerge()
m_32070_()
private void
a(cjh arg0)
tryToMerge(ItemEntity arg0)
method_6972(class_1542 arg0)
tryMerge(ItemEntity other)
m_32015_(C_976_ arg0)
public static boolean
a(cuq arg0, cuq arg1)
areMergable(ItemStack arg0, ItemStack arg1)
method_24017(class_1799 arg0, class_1799 arg1)
canMerge(ItemStack stack1, ItemStack stack2)
m_32026_(C_1391_ p_32027_, C_1391_ p_32028_)
public static ItemStack
a(cuq arg0, cuq 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)
m_32029_(C_1391_ p_32030_, C_1391_ p_32031_, int p_32032_)
private static void
a(cjh arg0, cuq arg1, cuq 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)
m_32022_(C_976_ p_32023_, C_1391_ p_32024_, C_1391_ p_32025_)
private static void
a(cjh arg0, cuq arg1, cjh arg2, cuq 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)
m_32017_(C_976_ p_32018_, C_1391_ p_32019_, C_976_ p_32020_, C_1391_ p_32021_)
public boolean
be()
fireImmune()
method_5753()
isFireImmune()
m_5825_()
public boolean
a(brk arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
damage(DamageSource arg0, float arg1)
m_6469_(C_489_ p_32014_, float arg1)
public void
b(ub arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(ub arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public void
b_(cmx arg0)
playerTouch(Player arg0)
method_5694(class_1657 arg0)
onPlayerCollision(PlayerEntity arg0)
m_6123_(C_1141_ arg0)
public Component
ah()
getName()
method_5477()
getName()
m_7755_()
public boolean
cu()
isAttackable()
method_5732()
isAttackable()
m_6097_()
public Entity
a(eqc arg0)
changeDimension(DimensionTransition arg0)
method_5731(class_5454 arg0)
teleportTo(TeleportTarget arg0)
m_5489_(C_336494_ arg0)
public ItemStack
p()
getItem()
method_6983()
getStack()
m_32055_()
public void
a(cuq arg0)
setItem(ItemStack arg0)
method_6979(class_1799 arg0)
setStack(ItemStack stack)
m_32045_(C_1391_ arg0)
public void
a(ajw<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
m_7350_(C_5225_<?> arg0)
public void
b(UUID arg0)
setTarget(UUID arg0)
method_48349(UUID arg0)
setOwner(UUID owner)
m_266426_(UUID arg0)
public void
b(bsr arg0)
setThrower(Entity arg0)
method_6981(class_1297 arg0)
setThrower(Entity thrower)
m_32052_(C_507_ arg0)
public int
t()
getAge()
method_6985()
getItemAge()
m_32059_()
public void
v()
setDefaultPickUpDelay()
method_6988()
setToDefaultPickupDelay()
m_32060_()
public void
w()
setNoPickUpDelay()
method_6975()
resetPickupDelay()
m_32061_()
public void
x()
setNeverPickUp()
method_6989()
setPickupDelayInfinite()
m_32062_()
public void
b(int arg0)
setPickUpDelay(int arg0)
method_6982(int arg0)
setPickupDelay(int pickupDelay)
m_32010_(int arg0)
public boolean
y()
hasPickUpDelay()
method_6977()
cannotPickup()
m_32063_()
public void
z()
setUnlimitedLifetime()
method_35190()
setNeverDespawn()
m_149678_()
public void
A()
setExtendedLifetime()
method_6976()
setCovetedItem()
m_32064_()
public void
B()
makeFakeItem()
method_6987()
setDespawnImmediately()
m_32065_()
public float
a(float arg0)
getSpin(float arg0)
method_27314(float arg0)
getRotation(float tickDelta)
m_32008_(float arg0)
public ItemEntity
C()
copy()
method_29271()
copy()
m_32066_()
public SoundSource
de()
getSoundSource()
method_5634()
getSoundCategory()
m_5720_()
public float
dF()
getVisualRotationYInDegrees()
method_43078()
getBodyYaw()
m_213816_()
public SlotAccess
a_(int arg0)
getSlot(int arg0)
method_32318(int arg0)
getStackReference(int arg0)
m_141942_(int arg0)