Package org.bukkit.block
Interface Vault
- All Superinterfaces:
- BlockState,- Metadatable,- PersistentDataHolder,- TileState
Represents a captured state of a vault.
- 
Method SummaryModifier and TypeMethodDescriptiondoubleGets the distance at which a player must enter for this vault to activate.doubleGets the distance at which a player must exit for the vault to deactivate.Gets theLootTablethis vault will display items from.Gets theItemStackplayers must use to unlock this vault.Gets theLootTablethis vault will pick rewards from.Gets the players who have already received rewards from this vault.voidsetActivationRange(double range) Sets the distance at which a player must enter for this vault to activate.voidsetDeactivationRange(double range) Sets the distance at which a player must exit for this vault to deactivate.voidsetDisplayLootTable(LootTable table) Sets theLootTablethis vault will display items from.voidsetKeyItem(ItemStack keyItem) Sets theItemStackplayers must use to unlock this vault.voidsetLootTable(LootTable table) Sets theLootTablethis vault will pick rewards from.Methods inherited from interface org.bukkit.block.BlockStatecopy, copy, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.block.TileStategetPersistentDataContainer
- 
Method Details- 
getActivationRangedouble getActivationRange()Gets the distance at which a player must enter for this vault to activate.- Returns:
- the distance at which a player must enter for this vault to activate.
 
- 
setActivationRangevoid setActivationRange(double range) Sets the distance at which a player must enter for this vault to activate.- Parameters:
- range- the distance at which a player must enter for this vault to activate.
 
- 
getDeactivationRangedouble getDeactivationRange()Gets the distance at which a player must exit for the vault to deactivate.- Returns:
- the distance at which a player must exit for the vault to deactivate.
 
- 
setDeactivationRangevoid setDeactivationRange(double range) Sets the distance at which a player must exit for this vault to deactivate.- Parameters:
- range- the distance at which a player must exit for this vault to deactivate.
 
- 
getLootTableGets theLootTablethis vault will pick rewards from.- Returns:
- the loot table
 
- 
setLootTableSets theLootTablethis vault will pick rewards from.- Parameters:
- table- the loot table
 
- 
getDisplayLootTableGets theLootTablethis vault will display items from.
 If this value is null the regular loot table will be used to display items.- Returns:
- the loot table to display items from
 
- 
setDisplayLootTableSets theLootTablethis vault will display items from.
 If this value is set to null the regular loot table will be used to display items.- Parameters:
- table- the loot table to display items from
 
- 
getKeyItemGets theItemStackplayers must use to unlock this vault.- Returns:
- the key item
 
- 
setKeyItemSets theItemStackplayers must use to unlock this vault.- Parameters:
- keyItem- the key item
 
- 
getRewardedPlayersGets the players who have already received rewards from this vault.- Returns:
- unmodifiable set of player UUIDs
- Throws:
- IllegalStateException- if this block state is not placed
 
 
-