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 TypeMethodDescriptionboolean
onBreak
(org.bukkit.entity.Player p, org.bukkit.block.Block b, SlimefunItem item, UnregisterReason reason) Deprecated.This method gets called when theBlock
is 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 theBlock
is broken. ThePlayer
will be null if theBlock
exploded- Parameters:
p
- ThePlayer
who broke theBlock
b
- TheBlock
that was brokenitem
- TheSlimefunItem
that was stored in thatBlock
reason
- The reason for theBlock
breaking- Returns:
- Whether the
Event
should be cancelled
-
BlockBreakHandler
instead.