Interface IEntityItem<T extends net.minecraft.entity.item.EntityItem>

All Superinterfaces:
IEntity<T>

public interface IEntityItem<T extends net.minecraft.entity.item.EntityItem>
extends IEntity<T>
  • Method Details

    • getOwner

      java.lang.String getOwner()
      Returns:
      The owner of the item, only the owner can pick the item up
    • setOwner

      void setOwner​(java.lang.String name)
      Parameters:
      name - The owner of the item, only the owner can pick up the item (note that the item can also be picked up if the lifetime - age is equal or smaller than 200)
    • getPickupDelay

      int getPickupDelay()
      Returns:
      Ticks remaining before it can be picked up (32767 is infinite)
    • setPickupDelay

      void setPickupDelay​(int delay)
      Parameters:
      delay - Delay before the item can be picked up (32767 is infinite delay)
    • getAge

      long getAge()
      Specified by:
      getAge in interface IEntity<T extends net.minecraft.entity.item.EntityItem>
      Returns:
      Returns the age of the item
    • setAge

      void setAge​(long age)
      Parameters:
      age - Age of the item (-32767 is infinite age)
    • getLifeSpawn

      int getLifeSpawn()
      Returns:
      When the age reaches this the item despawns
    • setLifeSpawn

      void setLifeSpawn​(int age)
      Parameters:
      age - Age at which the item despawns
    • getItem

      IItemStack getItem()
    • setItem

      void setItem​(IItemStack item)