public class BlockPatternBuilder extends Object
Modifier and Type | Field and Description |
---|---|
private List<String[]> |
aisles |
private Map<Character,Predicate<CachedBlockPosition>> |
charMap |
private int |
height |
private static Joiner |
JOINER |
private int |
width |
Modifier | Constructor and Description |
---|---|
private |
BlockPatternBuilder() |
Modifier and Type | Method and Description |
---|---|
BlockPatternBuilder |
aisle(String[] pattern) |
private Predicate<CachedBlockPosition>[][][] |
bakePredicates() |
BlockPattern |
build() |
static BlockPatternBuilder |
start() |
private void |
validate() |
BlockPatternBuilder |
where(char key,
Predicate<CachedBlockPosition> predicate) |
private static final Joiner JOINER
private final Map<Character,Predicate<CachedBlockPosition>> charMap
private int height
private int width
public BlockPatternBuilder aisle(String[] pattern)
public static BlockPatternBuilder start()
public BlockPatternBuilder where(char key, Predicate<CachedBlockPosition> predicate)
public BlockPattern build()
private Predicate<CachedBlockPosition>[][][] bakePredicates()
private void validate()