TestBlockPaste-Without-Water #146
@ -142,36 +142,32 @@ public class FlatteningWrapper15 implements FlatteningWrapper {
|
|||||||
if (pasteOptions.getColor() != Color.YELLOW) {
|
if (pasteOptions.getColor() != Color.YELLOW) {
|
||||||
changeColor(clipboard, pasteOptions.getColor());
|
changeColor(clipboard, pasteOptions.getColor());
|
||||||
}
|
}
|
||||||
if (pasteOptions.isOnlyColors()) {
|
e.setMask(new Mask() {
|
||||||
Set<String> blocks = new HashSet<>();
|
@Override
|
||||||
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_wool");
|
public boolean test(BlockVector3 blockVector3) {
|
||||||
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_terracotta");
|
Set<String> blocks = new HashSet<>();
|
||||||
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_glazed_terracotta");
|
if (pasteOptions.isOnlyColors()) {
|
||||||
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_stained_glass");
|
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_wool");
|
||||||
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_stained_glass_pane");
|
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_terracotta");
|
||||||
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_concrete");
|
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_glazed_terracotta");
|
||||||
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_concrete_powder");
|
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_stained_glass");
|
||||||
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_carpet");
|
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_stained_glass_pane");
|
||||||
|
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_concrete");
|
||||||
e.setMask(new Mask() {
|
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_concrete_powder");
|
||||||
@Override
|
blocks.add("minecraft:" + pasteOptions.getColor().name().toLowerCase() + "_carpet");
|
||||||
public boolean test(BlockVector3 blockVector3) {
|
|
||||||
BaseBlock block = clipboard.getFullBlock(blockVector3);
|
|
||||||
String blockName = block.toString().toLowerCase();
|
|
||||||
return blocks.contains(blockName);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
BaseBlock block = clipboard.getFullBlock(blockVector3);
|
||||||
@Override
|
String blockName = block.toString().toLowerCase();
|
||||||
public Mask2D toMask2D() {
|
return blockName.equals("minecraft:water") || blocks.contains(blockName);
|
||||||
return null;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public Mask copy() {
|
@Nullable
|
||||||
return this;
|
@Override
|
||||||
}
|
public Mask2D toMask2D() {
|
||||||
});
|
return null;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
ClipboardHolder ch = new ClipboardHolder(clipboard);
|
ClipboardHolder ch = new ClipboardHolder(clipboard);
|
||||||
BlockVector3 dimensions = clipboard.getDimensions();
|
BlockVector3 dimensions = clipboard.getDimensions();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren