CuboidCopy(Vector origin, Vector size, World world) { this.origin = origin; this.size = size; this.world = world; width = size.getBlockX(); height = size.getBlockY(); length = size.getBlockZ(); }
@Override public BaseBlock getBlock(Vector location) { if (WEManager.maskContains(this.mask, location.getBlockX(), location.getBlockY(), location.getBlockZ())) { return super.getBlock(location); } return WEManager.AIR; } }
@Override public BaseBlock getBlock(Vector location) { if (WEManager.maskContains(this.mask, location.getBlockX(), location.getBlockY(), location.getBlockZ())) { return super.getBlock(location); } return WEManager.AIR; }
@Override public boolean setBlock(Vector location, BaseBlock block) throws WorldEditException { return WEManager.maskContains(this.mask, location.getBlockX(), location.getBlockY(), location.getBlockZ()) && super.setBlock(location, block); }
@Override protected void loadFromFile(File file) throws IOException, CuboidCopyException, DataException { clipboard = SchematicFormat.MCEDIT.load(file); origin = clipboard.getOrigin(); size = clipboard.getSize(); width = size.getBlockX(); height = size.getBlockY(); length = size.getBlockZ(); }
if (this.BScount > Settings.Chunk_Processor.MAX_TILES) { this.BSblocked = true; PS.debug(C.PREFIX + "&cdetected unsafe WorldEdit: " + location.getBlockX() + "," + location.getBlockZ()); if (WEManager.maskContains(this.mask, location.getBlockX(), location.getBlockY(), location.getBlockZ())) { if (this.count++ > this.max) { if (this.parent != null) { int x = location.getBlockX(); int y = location.getBlockY(); int z = location.getBlockZ(); if (WEManager.maskContains(this.mask, location.getBlockX(), location.getBlockY(), location.getBlockZ())) { if (this.count++ > this.max) { if (this.parent != null) {
if (area.maxAreaSize.getValue() != -1 && size.getBlockX() * size.getBlockY() * size.getBlockZ() > area.maxAreaSize.getValue() && !area.commandSaveBypassLimitPermissions.hasPermission(src)) { src.sendMessage(Text.of(TextColors.RED, "Area is larger than allowed " + area.maxAreaSize.getValue() + " blocks.")); return CommandResult.empty();