Interface SlimefunBlockHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Deprecated.
A
SlimefunBlockHandler handles breaking and placing of blocks.
You can use this class to initialize block data but also to correctly
destroy blocks.
SlimefunItem.registerBlockHandler(String, SlimefunBlockHandler);
- Author:
- TheBusyBiscuit
-
Method Summary
Modifier and TypeMethodDescriptionbooleanonBreak(org.bukkit.entity.Player p, org.bukkit.block.Block b, SlimefunItem item, UnregisterReason reason) Deprecated.This method gets called when theBlockis broken.
-
Method Details
-
onBreak
boolean onBreak(org.bukkit.entity.Player p, org.bukkit.block.Block b, SlimefunItem item, UnregisterReason reason) Deprecated.This method gets called when theBlockis broken. ThePlayerwill be null if theBlockexploded- Parameters:
p- ThePlayerwho broke theBlockb- TheBlockthat was brokenitem- TheSlimefunItemthat was stored in thatBlockreason- The reason for theBlockbreaking- Returns:
- Whether the
Eventshould be cancelled
-
BlockBreakHandlerinstead.