public interface StackedBlocksManager extends IDatabaseBridgeHolder
Modifier and Type | Method and Description |
---|---|
int |
getStackedBlockAmount(org.bukkit.block.Block block)
Get the block amount in a specific block.
|
int |
getStackedBlockAmount(org.bukkit.Location location)
Get the block amount in a specific location.
|
Key |
getStackedBlockKey(org.bukkit.Location location)
Get the block's key in a specific location.
|
java.util.Map<org.bukkit.Location,java.lang.Integer> |
getStackedBlocks()
Get all the stacked blocks on the server.
|
java.util.Map<org.bukkit.Location,java.lang.Integer> |
getStackedBlocks(org.bukkit.Chunk chunk)
Get all the stacked blocks in a specific chunk.
|
java.util.Map<org.bukkit.Location,java.lang.Integer> |
getStackedBlocks(org.bukkit.World world,
int chunkX,
int chunkZ)
Get all the stacked blocks in a specific chunk.
|
int |
removeStackedBlock(org.bukkit.Location location)
Remove stacked block at a specific location.
|
void |
removeStackedBlockHologram(org.bukkit.Location location)
Remove the hologram of a stacked block.
|
void |
removeStackedBlockHolograms(org.bukkit.Chunk chunk)
Remove the holograms of stacked-blocks in a specific chunk.
|
java.util.Map<org.bukkit.Location,java.lang.Integer> |
removeStackedBlocks(org.bukkit.Chunk chunk)
Remove stacked blocks at a specific chunk.
|
java.util.Map<org.bukkit.Location,java.lang.Integer> |
removeStackedBlocks(org.bukkit.World world,
int chunkX,
int chunkZ)
Remove stacked blocks at a specific chunk.
|
boolean |
setStackedBlock(org.bukkit.block.Block block,
int amount)
Set a new amount for a specific block.
|
boolean |
setStackedBlock(org.bukkit.Location location,
Key blockKey,
int amount)
Set a new amount for a specific block.
|
void |
updateStackedBlockHologram(org.bukkit.Location location)
Update the hologram of a stacked block.
|
void |
updateStackedBlockHolograms(org.bukkit.Chunk chunk)
Update the holograms of stacked-blocks in a specific chunk.
|
getDatabaseBridge
int getStackedBlockAmount(org.bukkit.block.Block block)
block
- The block to check.int getStackedBlockAmount(org.bukkit.Location location)
location
- The location to check.@Nullable Key getStackedBlockKey(org.bukkit.Location location)
location
- The location to check.boolean setStackedBlock(org.bukkit.block.Block block, int amount)
block
- The block to set the amount to.amount
- The new amount of the block.boolean setStackedBlock(org.bukkit.Location location, Key blockKey, int amount)
location
- The location of the block.blockKey
- The key of the block.amount
- The new amount of the block.int removeStackedBlock(org.bukkit.Location location)
location
- The location of the stacked block.java.util.Map<org.bukkit.Location,java.lang.Integer> removeStackedBlocks(org.bukkit.Chunk chunk)
chunk
- The chunk to remove stacked blocks from.java.util.Map<org.bukkit.Location,java.lang.Integer> removeStackedBlocks(org.bukkit.World world, int chunkX, int chunkZ)
world
- The world of the chunk.chunkX
- The x-coords value of the chunk.chunkZ
- The z-coords value of the chunk.java.util.Map<org.bukkit.Location,java.lang.Integer> getStackedBlocks(org.bukkit.Chunk chunk)
chunk
- The chunk to get stacked blocks from.java.util.Map<org.bukkit.Location,java.lang.Integer> getStackedBlocks(org.bukkit.World world, int chunkX, int chunkZ)
world
- The world of the chunk.chunkX
- The x-coords value of the chunk.chunkZ
- The z-coords value of the chunk.java.util.Map<org.bukkit.Location,java.lang.Integer> getStackedBlocks()
void updateStackedBlockHologram(org.bukkit.Location location)
location
- The location of the stacked block.void updateStackedBlockHolograms(org.bukkit.Chunk chunk)
chunk
- The chunk to update holograms in.void removeStackedBlockHologram(org.bukkit.Location location)
location
- The location of the stacked block.void removeStackedBlockHolograms(org.bukkit.Chunk chunk)
chunk
- The chunk to update holograms in.