public final class WildBusterAPI
extends java.lang.Object
Constructor and Description |
---|
WildBusterAPI() |
Modifier and Type | Method and Description |
---|---|
static ChunkBuster |
createChunkBuster(java.lang.String name,
int radius,
org.bukkit.inventory.ItemStack busterItem)
Create a new chunk-buster.
|
static PlayerBuster |
createPlayerBuster(org.bukkit.entity.Player player,
org.bukkit.Location placedLocation,
ChunkBuster buster)
Create a new player-buster.
|
static BlockData |
getBlockData(org.bukkit.block.Block block)
Get block-data from a block object
|
static ChunkBuster |
getChunkBuster(org.bukkit.inventory.ItemStack item)
Get a chunk-buster object by it's buster item
|
static ChunkBuster |
getChunkBuster(java.lang.String name)
Get a chunk-buster object by it's name
|
static PlayerBuster |
getNotifyBuster(org.bukkit.OfflinePlayer player)
Get the player-buster that send notifications to the player.
|
static PlayerBuster |
getPlayerBuster(org.bukkit.Chunk chunk)
Get a player-buster from a chunk.
|
static java.util.List<PlayerBuster> |
getPlayerBusters(org.bukkit.OfflinePlayer player)
Get all player-buster that are ran by a player.
|
static WildBuster |
getWildBuster()
Get the wildbuster object
|
static void |
removePlayerBuster(PlayerBuster buster)
Remove a player-buster from cache.
|
public static ChunkBuster getChunkBuster(java.lang.String name)
name
- a name to checkpublic static ChunkBuster getChunkBuster(org.bukkit.inventory.ItemStack item)
item
- an item to checkpublic static PlayerBuster getPlayerBuster(org.bukkit.Chunk chunk)
chunk
- chunk to checkpublic static java.util.List<PlayerBuster> getPlayerBusters(org.bukkit.OfflinePlayer player)
player
- player to checkpublic static ChunkBuster createChunkBuster(java.lang.String name, int radius, org.bukkit.inventory.ItemStack busterItem)
name
- The name of the new chunk-busterradius
- The radius of the new chunk-busterbusterItem
- The item of the new chunk-busterpublic static PlayerBuster createPlayerBuster(org.bukkit.entity.Player player, org.bukkit.Location placedLocation, ChunkBuster buster)
player
- player that placed the chunk-buster.placedLocation
- location of chunk-busterbuster
- the chunk-buster objectpublic static void removePlayerBuster(PlayerBuster buster)
buster
- a player-buster to removepublic static PlayerBuster getNotifyBuster(org.bukkit.OfflinePlayer player)
player
- a player to checkpublic static BlockData getBlockData(org.bukkit.block.Block block)
block
- a block to checkpublic static WildBuster getWildBuster()