Class ItemEntity

All Implemented Interfaces:
DataComponentGetter, SyncedDataHolder, TraceableEntity, EntityAccess, UniquelyIdentifyable, Nameable, ScoreHolder, IAttachmentHolder, IEntityExtension

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:
    • DEFAULT_HEALTH

      private static final int DEFAULT_HEALTH
      See Also:
    • DEFAULT_AGE

      private static final short DEFAULT_AGE
      See Also:
    • DEFAULT_PICKUP_DELAY

      private static final short DEFAULT_PICKUP_DELAY
      See Also:
    • age

      private int age
    • pickupDelay

      private int pickupDelay
    • health

      private int health
    • thrower

      @Nullable private EntityReference<Entity> thrower
    • 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> pEntityType, Level pLevel)
    • ItemEntity

      public ItemEntity(Level pLevel, double pPosX, double pPosY, double pPosZ, ItemStack pItemStack)
    • ItemEntity

      public ItemEntity(Level pLevel, double pPosX, double pPosY, double pPosZ, ItemStack pItemStack, double pDeltaX, double pDeltaY, double pDeltaZ)
    • ItemEntity

      private ItemEntity(ItemEntity pOther)
  • Method Details