Added get/setPickupDelay on Item entities, thanks robin0van0der0v
This commit is contained in:
parent
4030c98c20
commit
a5eaa00ef8
@ -23,4 +23,18 @@ public interface Item extends Entity {
|
|||||||
* @param stack An item stack.
|
* @param stack An item stack.
|
||||||
*/
|
*/
|
||||||
public void setItemStack(ItemStack stack);
|
public void setItemStack(ItemStack stack);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the delay before this Item is available to be picked up by players
|
||||||
|
*
|
||||||
|
* @return Remaining delay
|
||||||
|
*/
|
||||||
|
public int getPickupDelay();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the delay before this Item is available to be picked up by players
|
||||||
|
*
|
||||||
|
* @param delay New delay
|
||||||
|
*/
|
||||||
|
public void setPickupDelay(int delay);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user