mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +01:00
Added setItemStack(ItemStack stack) to CraftItemDrop
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
e658c25515
commit
94b8e2a239
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,10 @@ public class CraftItemDrop extends CraftEntity implements ItemDrop {
|
|||
return new CraftItemStack(item.a);
|
||||
}
|
||||
|
||||
public void setItemStack(ItemStack stack) {
|
||||
item.a = new net.minecraft.server.ItemStack(stack.getTypeId(), stack.getAmount(), stack.getDurability());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CraftItemDrop{" + "item=" + item + '}';
|
||||
|
|
Loading…
Reference in a new issue