Class SimpleBlockBreakHandler
java.lang.Object
io.github.thebusybiscuit.slimefun4.core.handlers.BlockBreakHandler
io.github.thebusybiscuit.slimefun4.implementation.handlers.SimpleBlockBreakHandler
- All Implemented Interfaces:
ItemHandler
This simple implementation of
BlockBreakHandler will execute the same code
for when the Block is broken by a Player, by a MinerAndroid or an explosion.
By default, both androids and explosions are allowed.- Author:
- TheBusyBiscuit
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabstract voidThis method is called when aBlockof this type is broken by aPlayer, by aMinerAndroidor through an explosion.voidvoidonPlayerBreak(BlockBreakEvent e, ItemStack item, List<ItemStack> drops) Methods inherited from class io.github.thebusybiscuit.slimefun4.core.handlers.BlockBreakHandler
getIdentifier, isAndroidAllowed, isExplosionAllowedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.thebusybiscuit.slimefun4.api.items.ItemHandler
validate
-
Constructor Details
-
SimpleBlockBreakHandler
protected SimpleBlockBreakHandler()This constructs a newSimpleBlockBreakHandler.
-
-
Method Details
-
onBlockBreak
This method is called when aBlockof this type is broken by aPlayer, by aMinerAndroidor through an explosion.- Parameters:
b- The brokenBlock
-
onPlayerBreak
- Specified by:
onPlayerBreakin classBlockBreakHandler
-
onAndroidBreak
- Overrides:
onAndroidBreakin classBlockBreakHandler
-
onExplode
- Overrides:
onExplodein classBlockBreakHandler
-