java.lang.Object
com.github.imdabigboss.easydatapack.backend.managers.BlockManagerImpl
All Implemented Interfaces:
BlockManager, org.bukkit.event.Listener

public class BlockManagerImpl extends Object implements org.bukkit.event.Listener, BlockManager
  • Constructor Details

    • BlockManagerImpl

      public BlockManagerImpl(EasyDatapack datapack)
  • Method Details

    • registerCustomBlock

      public void registerCustomBlock(CustomBlock block)
    • getCustomBlocks

      public @NonNull List<CustomBlock> getCustomBlocks()
      Description copied from interface: BlockManager
      Gets a list of all registered custom blocks.
      Specified by:
      getCustomBlocks in interface BlockManager
      Returns:
      a list of all registered custom blocks
    • blockToCustomBlock

      public CustomBlock blockToCustomBlock(@NonNull org.bukkit.block.Block block)
      Description copied from interface: BlockManager
      Gets a custom from a Block.
      Specified by:
      blockToCustomBlock in interface BlockManager
      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.
    • onPlayerInteract

      public void onPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event)
    • onBlockPlaceEvent

      public void onBlockPlaceEvent(org.bukkit.event.block.BlockPlaceEvent event)
    • onBlockBreak

      public void onBlockBreak(org.bukkit.event.block.BlockBreakEvent event)
    • onMushroomPhysics

      public void onMushroomPhysics(org.bukkit.event.block.BlockPhysicsEvent event)
    • onPickBlockEvent

      public void onPickBlockEvent(org.bukkit.event.inventory.InventoryClickEvent event)