public class BlockPattern extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockPattern.PatternItem |
| Constructor and Description |
|---|
BlockPattern(BlockPattern.PatternItem... blocks) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(org.bukkit.Location location,
boolean clear,
int xz,
int y)
Test whether this pattern matches a block.
|
org.bukkit.Location[] |
matches(org.bukkit.Location location,
int xz,
int y,
net.glowstone.util.pattern.BlockPattern.Alignment alignment)
Test whether this pattern matches a block.
|
public BlockPattern(BlockPattern.PatternItem... blocks)
public boolean matches(org.bukkit.Location location,
boolean clear,
int xz,
int y)
location - the base locationclear - if true, change the matching blocks for one alignment to airxz - TODO: document this parametery - TODO: document this parameterpublic org.bukkit.Location[] matches(org.bukkit.Location location,
int xz,
int y,
net.glowstone.util.pattern.BlockPattern.Alignment alignment)
location - the base locationxz - TODO: document this parametery - TODO: document this parameteralignment - TODO: document this parameterCopyright © 2021. All rights reserved.