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);
}
Aggregations