public interface StackerProvider
Modifier and Type | Method and Description |
---|---|
default boolean |
dropItem(org.bukkit.Location location,
org.bukkit.inventory.ItemStack itemStack,
int amount)
Drop an item on ground.
|
int |
getItemAmount(org.bukkit.entity.Item item)
Get the amount of a dropped item.
|
void |
setItemAmount(org.bukkit.entity.Item item,
int amount)
Set the amount of a dropped item.
|
int getItemAmount(org.bukkit.entity.Item item)
item
- The item to check.void setItemAmount(org.bukkit.entity.Item item, int amount)
item
- The item to change the amount to.amount
- The amount to set.default boolean dropItem(org.bukkit.Location location, org.bukkit.inventory.ItemStack itemStack, int amount)
location
- The location to drop the item at.itemStack
- The item to drop.amount
- The amount to drop of this item.