Interface BlockManager

All Known Implementing Classes:
BlockManagerImpl

public interface BlockManager
This class is used to manage custom blocks.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable CustomBlock
    blockToCustomBlock​(@NonNull org.bukkit.block.Block block)
    Gets a custom from a Block.
    @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

      @Nullable CustomBlock blockToCustomBlock(@NonNull org.bukkit.block.Block block)
      Gets a custom from a Block.
      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.