public final class WildChestsAPI
extends java.lang.Object
Constructor and Description |
---|
WildChestsAPI() |
Modifier and Type | Method and Description |
---|---|
static Chest |
getChest(org.bukkit.Location location)
Get a regular chest in a specific location.
|
static ChestData |
getChestData(org.bukkit.inventory.ItemStack itemStack)
Get the settings object of a chest, by it's item.
|
static ChestData |
getChestData(java.lang.String name)
Get the settings object of a chest, by it's name.
|
static WildChests |
getInstance()
Get the instance of the plugin.
|
static LinkedChest |
getLinkedChest(org.bukkit.Location location)
Get a linked chest in a specific location.
|
static StorageChest |
getStorageChest(org.bukkit.Location location)
Get a storage chest in a specific location.
|
public static Chest getChest(org.bukkit.Location location)
location
- The location to check.public static LinkedChest getLinkedChest(org.bukkit.Location location)
location
- The location to check.public static StorageChest getStorageChest(org.bukkit.Location location)
location
- The location to check.public static ChestData getChestData(java.lang.String name)
name
- The name of the chest (similar to config names)public static ChestData getChestData(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to check (similar to configured item in config)public static WildChests getInstance()