mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 19:34:43 +00:00
IEntityItem added
This commit is contained in:
1 parent
026d6d25ef
commit
b4ed688e61
1 file changed
+56
@@ -0,0 +1,56 @@
|
||||
package noppes.npcs.api.entity;
|
||||
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
|
||||
public interface IEntityItem<T extends EntityItem> extends IEntity<T> {
|
||||
|
||||
/**
|
||||
* @return The owner of the item, only the owner can pick the item up
|
||||
*/
|
||||
public String getOwner();
|
||||
|
||||
/**
|
||||
* @param 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)
|
||||
*/
|
||||
public void setOwner(String name);
|
||||
|
||||
public String getThrower();
|
||||
|
||||
public void setThrower(String name);
|
||||
|
||||
/**
|
||||
* @return Ticks remaining before it can be picked up (32767 is infinite)
|
||||
*/
|
||||
public int getPickupDelay();
|
||||
|
||||
/**
|
||||
* @param delay Delay before the item can be picked up (32767 is infinite delay)
|
||||
*/
|
||||
public void setPickupDelay(int delay);
|
||||
|
||||
/**
|
||||
* @return Returns the age of the item
|
||||
*/
|
||||
public long getAge();
|
||||
|
||||
/**
|
||||
* @param age Age of the item (-32767 is infinite age)
|
||||
*/
|
||||
public void setAge(long age);
|
||||
|
||||
/**
|
||||
* @return When the age reaches this the item despawns
|
||||
*/
|
||||
public int getLifeSpawn();
|
||||
|
||||
/**
|
||||
* @param age Age at which the item despawns
|
||||
*/
|
||||
public void setLifeSpawn(int age);
|
||||
|
||||
public IItemStack getItem();
|
||||
|
||||
public void setItem(IItemStack item);
|
||||
}
|
||||
Reference in new issue
Block a user