forked from SteamWar/SteamWar
Add SpawnPathRegion
Add SpawnRegion
This commit is contained in:
@@ -57,6 +57,19 @@ public class PasteBuilder {
|
||||
this.clipboardProvider = clipboardProvider;
|
||||
}
|
||||
|
||||
public PasteBuilder with(ClipboardProvider clipboardProvider) {
|
||||
return new PasteBuilder(clipboardProvider)
|
||||
.pastePoint(pastPoint)
|
||||
.rotate(rotate)
|
||||
.ignoreAir(ignoreAir)
|
||||
.reset(reset)
|
||||
.minPoint(minPoint)
|
||||
.maxPoint(maxPoint)
|
||||
.waterLevel(waterLevel)
|
||||
.predicates(predicates)
|
||||
.mappers(mappers);
|
||||
}
|
||||
|
||||
public PasteBuilder pastePoint(Point point) {
|
||||
this.pastPoint = point;
|
||||
return this;
|
||||
@@ -92,6 +105,16 @@ public class PasteBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
private PasteBuilder predicates(List<BiPredicate<BaseBlock, String>> predicates) {
|
||||
this.predicates = predicates;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PasteBuilder mappers(List<BiConsumer<Clipboard, BlockVector3>> mappers) {
|
||||
this.mappers = mappers;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PasteBuilder only(BiPredicate<BaseBlock, String> predicate) {
|
||||
predicates.add(predicate);
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user