Search in sources :

Example 1 with XBlock

use of com.cryptomorin.xseries.XBlock in project AureliumSkills by Archy-X.

the class RegionBlockListener method checkBreak.

@EventHandler(priority = EventPriority.MONITOR)
public void checkBreak(BlockBreakEvent event) {
    if (event.isCancelled())
        return;
    Block block = event.getBlock();
    regionManager.removePlacedBlock(block);
    checkTallPlant(block, 0, XBlock::isSugarCane);
    checkTallPlant(block, 0, mat -> mat == XMaterial.BAMBOO.parseMaterial());
    checkTallPlant(block, 0, mat -> mat == Material.CACTUS);
    checkBlocksRequiringSupportBelow(block);
    checkAmethystCluster(block);
}
Also used : Block(org.bukkit.block.Block) XBlock(com.cryptomorin.xseries.XBlock) XBlock(com.cryptomorin.xseries.XBlock) EventHandler(org.bukkit.event.EventHandler)

Aggregations

XBlock (com.cryptomorin.xseries.XBlock)1 Block (org.bukkit.block.Block)1 EventHandler (org.bukkit.event.EventHandler)1