public interface StorageChest extends RegularChest, Chest
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
getAmount()
Get the amount of the stored item.
|
java.math.BigInteger |
getExactAmount()
Deprecated.
Use getAmount()
|
org.bukkit.inventory.ItemStack |
getItemStack()
Get the stored item of this chest.
|
java.math.BigInteger |
getMaxAmount()
Get the maximum amount that can be stored.
|
void |
setAmount(java.math.BigInteger amount)
Set the amount of the stored item.
|
void |
setAmount(int amount)
Deprecated.
Use setAmount(BigInteger amount)
|
void |
setItemStack(org.bukkit.inventory.ItemStack itemStack)
Change the item that is stored in this chest.
|
void |
setMaxAmount(java.math.BigInteger maxAmount)
Set the maximum amount of the item that can be stored.
|
void |
update()
Update the inventory for all the viewers.
|
addItems, addRawItems, canPlaceItemThroughFace, canTakeItemThroughFace, closePage, getChestType, getContents, getData, getItem, getLocation, getPage, getPageIndex, getPages, getPagesAmount, getPlacer, getSlotsForFace, onBreak, onClose, onHopperItemTake, onHopperMove, onHopperMove, onInteract, onOpen, onPlace, openPage, remove, removeItem, setItem, setPage, setPage
org.bukkit.inventory.ItemStack getItemStack()
void setItemStack(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The new item to store.java.math.BigInteger getAmount()
@Deprecated java.math.BigInteger getExactAmount()
void setAmount(java.math.BigInteger amount)
amount
- The new amount of the item.@Deprecated void setAmount(int amount)
amount
- The new amount of the item.java.math.BigInteger getMaxAmount()
void setMaxAmount(java.math.BigInteger maxAmount)
maxAmount
- The maximum amountvoid update()