public interface ChestsManager
Modifier and Type | Method and Description |
---|---|
Chest |
addChest(java.util.UUID placer,
org.bukkit.Location location,
ChestData chestData)
Add a chest into the database.
|
java.util.List<ChestData> |
getAllChestData()
Get all the chest settings from config.
|
java.util.List<LinkedChest> |
getAllLinkedChests(LinkedChest linkedChest)
Deprecated.
Moved to LinkedChest#getAllLinkedChests
|
Chest |
getChest(org.bukkit.Location location)
Get a regular chest in a specific location.
|
ChestData |
getChestData(org.bukkit.inventory.ItemStack itemStack)
Get the settings object of a chest, by it's item.
|
ChestData |
getChestData(java.lang.String name)
Get the settings object of a chest, by it's name.
|
java.util.List<Chest> |
getChests()
Get all the chests on the server, including in unloaded chunks.
|
java.util.List<Chest> |
getChests(org.bukkit.Chunk chunk)
Get all the chests in a specific chunk.
|
LinkedChest |
getLinkedChest(org.bukkit.Location location)
Get a linked chest in a specific location.
|
java.util.List<Chest> |
getNearbyChests(org.bukkit.Location location)
Deprecated.
Not used anymore, can make massive performance spikes.
|
StorageChest |
getStorageChest(org.bukkit.Location location)
Get a storage chest in a specific location.
|
void |
removeChest(Chest chest)
Remove the chest from the database.
|
Chest getChest(org.bukkit.Location location)
location
- The location to check.LinkedChest getLinkedChest(org.bukkit.Location location)
location
- The location to check.StorageChest getStorageChest(org.bukkit.Location location)
location
- The location to check.Chest addChest(java.util.UUID placer, org.bukkit.Location location, ChestData chestData)
placer
- The placer's uuid of the chest.location
- The location of the chest.chestData
- The settings of the chest.void removeChest(Chest chest)
chest
- The chest to remove.@Deprecated java.util.List<LinkedChest> getAllLinkedChests(LinkedChest linkedChest)
linkedChest
- The chest to check.ChestData getChestData(java.lang.String name)
name
- The name of the chest (similar to config names)ChestData getChestData(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to check (similar to configured item in config)java.util.List<Chest> getChests()
java.util.List<Chest> getChests(org.bukkit.Chunk chunk)
@Deprecated java.util.List<Chest> getNearbyChests(org.bukkit.Location location)
location
- The location to check.java.util.List<ChestData> getAllChestData()