@FunctionalInterface public interface BlockAllocator
|Modifier and Type||Method||Description|
Allocate the blocks that should be broken by the vein mining pattern.
void allocate(Set<org.bukkit.block.Block> blocks, VeinBlock type, org.bukkit.block.Block origin, ToolCategory category, MaterialAlias alias)
NOTE: If null is added to the "blocks" set, a NullPointerException will be thrown and the method will fail.
blocks- a set of all blocks to break. Valid blocks should be added here. The "origin" block passed to this method will be added automatically
type- the type of VeinBlock being vein mined
origin- the block where the vein mine was initiated
category- the tool category used to break the block
alias- an alias of the block being broken if one exists. May be null
VeinMiningPattern.allocateBlocks(Set, VeinBlock, Block, ToolCategory, MaterialAlias)