mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Constructors for damage on itemstack
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
6a71870555
commit
fa8b3da89b
1 changed files with 10 additions and 0 deletions
|
@ -26,6 +26,16 @@ public class ItemStack {
|
||||||
this(type.getID(), amount);
|
this(type.getID(), amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ItemStack(final int type, final int amount, final byte damage) {
|
||||||
|
this.type = type;
|
||||||
|
this.amount = amount;
|
||||||
|
this.damage = damage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ItemStack(final Material type, final int amount, final byte damage) {
|
||||||
|
this(type.getID(), amount, damage);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the type of this item
|
* Gets the type of this item
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue