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 Detail

      • 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)
      • getThrower

        java.lang.String getThrower()
      • setThrower

        void setThrower​(java.lang.String name)
      • 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