@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, VeinTool tool, 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
tool- the tool used to break the block
alias- an alias of the block being broken if one exists. May be null
VeinMiningPattern.allocateBlocks(Set, VeinBlock, Block, VeinTool, MaterialAlias)