Interface BlockManager
- All Known Implementing Classes:
BlockManagerImpl
public interface BlockManager
This class is used to manage custom blocks.
-
Method Summary
Modifier and TypeMethodDescription@Nullable CustomBlockblockToCustomBlock(@NonNull org.bukkit.block.Block block)Gets a custom from aBlock.@NonNull List<CustomBlock>Gets a list of all registered custom blocks.
-
Method Details
-
getCustomBlocks
@NonNull List<CustomBlock> getCustomBlocks()Gets a list of all registered custom blocks.- Returns:
- a list of all registered custom blocks
-
blockToCustomBlock
Gets a custom from aBlock.- Parameters:
block- the block to get the custom block from- Returns:
- the custom block with the given name. Will be null if the block is not a custom block.
-