public interface ChestData
Modifier and Type | Method and Description |
---|---|
boolean |
containsRecipe(org.bukkit.inventory.ItemStack result)
Check if an item can be crafted by the chest.
|
int |
getAutoSuctionRange()
Get the suction-mode's check range
|
java.util.Set<Key> |
getBlacklisted()
Get all the blacklisted items.
|
java.util.List<java.lang.String> |
getChestParticles()
Get the particles of this chest.
|
ChestType |
getChestType()
Get the type of the chest.
|
int |
getDefaultPagesAmount()
Get the default amount of pages.
|
int |
getDefaultSize()
Get the default size for pages for the chest.
|
java.lang.String |
getDefaultTitle()
Get the default title for pages for the chest.
|
org.bukkit.inventory.ItemStack |
getItemStack()
Get the item-stack of the chest.
|
double |
getMultiplier()
Get the default multiplier for the chest.
|
java.lang.String |
getName()
Get the name of the chest.
|
java.util.Map<java.lang.Integer,InventoryData> |
getPagesData()
Get all the pages's data.
|
java.util.Iterator<org.bukkit.inventory.Recipe> |
getRecipes()
Get all the recipes for the auto-crafter.
|
java.math.BigInteger |
getStorageUnitMaxAmount()
Get the default max amount for storage chest.
|
java.lang.String |
getTitle(int page)
Get a title for a specific page.
|
java.util.Set<Key> |
getWhitelisted()
Get all the whitelisted items.
|
boolean |
isAutoCollect()
Check whether or not this chest has auto-collect enabled.
|
boolean |
isAutoCrafter()
Whether or not the chest has auto-crafting mode enabled.
|
boolean |
isAutoSuction()
Check whether or not this chest has suction-mode enabled.
|
boolean |
isAutoSuctionChunk()
Check whether or not this chest has it's suction-mode restricted to it's chunk.
|
boolean |
isHopperFilter()
Whether or not the chest has hopper-filter mode enabled for auto crafters.
|
boolean |
isSellMode()
Whether or not the chest has sell-mode enabled.
|
void |
setAutoCollect(boolean autoCollect)
Set whether or not this chest should have auto-collect enabled.
|
void |
setAutoCrafter(java.util.List<java.lang.String> recipes)
Set the recipes for the auto-crafter.
|
void |
setAutoSuctionChunk(boolean autoSuctionChunk)
Set whether or not the suction should be restricted to the chest's chunk.
|
void |
setAutoSuctionRange(int autoSuctionRange)
Set the auto suction range for this chest.
|
void |
setBlacklisted(java.util.Set<Key> blacklisted)
Set the blacklisted items for the chest.
|
void |
setDefaultPagesAmount(int defaultPagesAmount)
Set the amount of default pages.
|
void |
setDefaultSize(int size)
Set the default size of the pages.
|
void |
setDefaultTitle(java.lang.String title)
Set the default title of the pages.
|
void |
setHopperFilter(boolean hopperFilter)
Set whether or not the chest should have an hopper filter.
|
void |
setMultiplier(double multiplier)
Set the mutliplier of the chest.
|
void |
setPagesData(java.util.Map<java.lang.Integer,InventoryData> pagesData)
Set a pages data for the chest.
|
void |
setParticles(java.util.List<java.lang.String> particles)
Set a list of particles for the chest.
|
void |
setSellMode(boolean sellMode)
Set the sell mode status for this chest.
|
void |
setStorageUnitMaxAmount(java.math.BigInteger maxAmount)
Set the max amount of the storage-chest's item for this chest.
|
void |
setWhitelisted(java.util.Set<Key> whitelisted)
Set the whitelisted items for the chest.
|
java.lang.String getName()
org.bukkit.inventory.ItemStack getItemStack()
ChestType getChestType()
int getDefaultSize()
java.lang.String getDefaultTitle()
java.lang.String getTitle(int page)
page
- The page to check.boolean isSellMode()
boolean isHopperFilter()
boolean isAutoCrafter()
java.util.Iterator<org.bukkit.inventory.Recipe> getRecipes()
boolean containsRecipe(org.bukkit.inventory.ItemStack result)
java.util.Map<java.lang.Integer,InventoryData> getPagesData()
int getDefaultPagesAmount()
double getMultiplier()
boolean isAutoCollect()
boolean isAutoSuction()
int getAutoSuctionRange()
boolean isAutoSuctionChunk()
java.util.Set<Key> getBlacklisted()
java.util.Set<Key> getWhitelisted()
java.math.BigInteger getStorageUnitMaxAmount()
java.util.List<java.lang.String> getChestParticles()
void setDefaultSize(int size)
size
- The size to set.void setDefaultTitle(java.lang.String title)
title
- The title to set.void setSellMode(boolean sellMode)
sellMode
- The new status.void setHopperFilter(boolean hopperFilter)
hopperFilter
- The hopper-filter statusvoid setAutoCrafter(java.util.List<java.lang.String> recipes)
recipes
- The recipes to set.void setPagesData(java.util.Map<java.lang.Integer,InventoryData> pagesData)
pagesData
- The new data.void setDefaultPagesAmount(int defaultPagesAmount)
defaultPagesAmount
- The new amount.void setMultiplier(double multiplier)
multiplier
- The new multipliervoid setAutoCollect(boolean autoCollect)
autoCollect
- The new auto-collect statusvoid setAutoSuctionRange(int autoSuctionRange)
autoSuctionRange
- The new range.void setAutoSuctionChunk(boolean autoSuctionChunk)
autoSuctionChunk
- The new status.void setBlacklisted(java.util.Set<Key> blacklisted)
blacklisted
- The new blacklisted items.void setWhitelisted(java.util.Set<Key> whitelisted)
whitelisted
- The new whitelisted items.void setStorageUnitMaxAmount(java.math.BigInteger maxAmount)
maxAmount
- The new max amountvoid setParticles(java.util.List<java.lang.String> particles)
particles
- The new particles