Class ItemEntity

All Implemented Interfaces:
CommandSource, SyncedDataHolder, TraceableEntity, EntityAccess, Nameable, ScoreHolder, IAttachmentHolder, IEntityExtension, INBTSerializable<CompoundTag>

public class ItemEntity extends Entity implements TraceableEntity
  • Field Details

    • DATA_ITEM

      private static final EntityDataAccessor<ItemStack> DATA_ITEM
    • FLOAT_HEIGHT

      private static final float FLOAT_HEIGHT
      See Also:
    • EYE_HEIGHT

      public static final float EYE_HEIGHT
      See Also:
    • LIFETIME

      private static final int LIFETIME
      See Also:
    • INFINITE_PICKUP_DELAY

      private static final int INFINITE_PICKUP_DELAY
      See Also:
    • INFINITE_LIFETIME

      private static final int INFINITE_LIFETIME
      See Also:
    • age

      private int age
    • pickupDelay

      private int pickupDelay
    • health

      private int health
    • thrower

      @Nullable private UUID thrower
    • cachedThrower

      @Nullable private Entity cachedThrower
    • target

      @Nullable private UUID target
    • bobOffs

      public final float bobOffs
    • lifespan

      public int lifespan
      The maximum age of this EntityItem. The item is expired once this is reached.
  • Constructor Details

    • ItemEntity

      public ItemEntity(EntityType<? extends ItemEntity> p_31991_, Level p_31992_)
    • ItemEntity

      public ItemEntity(Level p_32001_, double p_32002_, double p_32003_, double p_32004_, ItemStack p_32005_)
    • ItemEntity

      public ItemEntity(Level p_149663_, double p_149664_, double p_149665_, double p_149666_, ItemStack p_149667_, double p_149668_, double p_149669_, double p_149670_)
    • ItemEntity

      private ItemEntity(ItemEntity p_31994_)
  • Method Details