Package net.glowstone.util.pattern
Class BlockPattern
java.lang.Object
net.glowstone.util.pattern.BlockPattern
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.
-
Constructor Details
-
BlockPattern
-
-
Method Details
-
matches
public boolean matches(org.bukkit.Location location, boolean clear, int xz, int y) Test whether this pattern matches a block.- Parameters:
location
- the base locationclear
- if true, change the matching blocks for one alignment to airxz
- TODO: document this parametery
- TODO: document this parameter- Returns:
- true if this pattern matches; false otherwise
-
matches
public 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.- Parameters:
location
- the base locationxz
- TODO: document this parametery
- TODO: document this parameteralignment
- TODO: document this parameter- Returns:
- true if this pattern matches; false otherwise
-