mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-09 04:09:54 +01:00
Implemented get/setPickupDelay on Item entities, thanks robin0van0der0v
This commit is contained in:
parent
ceba082703
commit
6c6eef8759
@ -22,9 +22,16 @@ public class CraftItem extends CraftEntity implements Item {
|
||||
item.itemStack = new net.minecraft.server.ItemStack(stack.getTypeId(), stack.getAmount(), stack.getDurability());
|
||||
}
|
||||
|
||||
public int getPickupDelay() {
|
||||
return item.pickupDelay;
|
||||
}
|
||||
|
||||
public void setPickupDelay(int delay) {
|
||||
item.pickupDelay = delay;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CraftItem";
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user