org.bukkit.Keyed
, VeinMiningPattern
public final class PatternDefault extends Object implements VeinMiningPattern
VeinMiningPattern
implementation used by all players unless explicitly set.Modifier and Type | Method | Description |
---|---|---|
void |
allocateBlocks(Set<org.bukkit.block.Block> blocks,
VeinBlock type,
org.bukkit.block.Block origin,
ToolCategory category,
MaterialAlias alias) |
Allocate the blocks that should be broken by the vein mining pattern.
|
static PatternDefault |
get() |
Get a singleton instance of the default pattern.
|
org.bukkit.NamespacedKey |
getKey() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allocateBlocks
public void allocateBlocks(Set<org.bukkit.block.Block> blocks, VeinBlock type, org.bukkit.block.Block origin, ToolCategory category, MaterialAlias alias)
VeinMiningPattern
NOTE: If null is added to the "blocks" set, a NullPointerException will be thrown and the method will fail.
allocateBlocks
in interface VeinMiningPattern
blocks
- a set of all blocks to break. Valid blocks should be added here. The "origin"
block passed to this method will be added automaticallytype
- the type of VeinBlock being vein minedorigin
- the block where the vein mine was initiatedcategory
- the tool category used to break the blockalias
- an alias of the block being broken if one exists. May be nullpublic org.bukkit.NamespacedKey getKey()
getKey
in interface org.bukkit.Keyed
public static PatternDefault get()