Drops from driver block breaks are now gathered by Block.getDrops() which gives you coal for Coal Ore, Lapis for Lapis Ore, Diamonds for Diamond Ore etc.
Moved Player based Event into a PlayerListener class for clarity on structure (having them in BlockListener and WorldListener didn't seem right)
canBreakBlock added to RailDriverTask class, to perfom a BlockBreakEvent execution on behalf of the Driver playerOwner to determine if blocks can be broken. Hasn't changed the way the Driver works normally at present, need to setup more extensive test setups to ensure this does prevent protected block breakage.
Drops from driver block breaks are now gathered by Block.getDrops() which gives you coal for Coal Ore, Lapis for Lapis Ore, Diamonds for Diamond Ore etc.
Moved Player based Event into a PlayerListener class for clarity on structure (having them in BlockListener and WorldListener didn't seem right)
canBreakBlock added to RailDriverTask class, to perfom a BlockBreakEvent execution on behalf of the Driver playerOwner to determine if blocks can be broken. Hasn't changed the way the Driver works normally at present, need to setup more extensive test setups to ensure this does prevent protected block breakage.