Search in sources :

Example 1 with NoMatchException

use of com.sk89q.worldedit.extension.input.NoMatchException in project FastAsyncWorldEdit by IntellectualSites.

the class TransformFactory method parseFromParsers.

private void parseFromParsers(final ParserContext context, final List<ResettableExtent> transforms, final String component) {
    ResettableExtent match = null;
    for (InputParser<ResettableExtent> parser : getParsers()) {
        match = parser.parseFromInput(component, context);
        if (match != null) {
            break;
        }
    }
    if (match == null) {
        throw new NoMatchException(Caption.of("worldedit.error.no-match", TextComponent.of(component)));
    }
    transforms.add(match);
}
Also used : NoMatchException(com.sk89q.worldedit.extension.input.NoMatchException) ResettableExtent(com.fastasyncworldedit.core.extent.ResettableExtent)

Example 2 with NoMatchException

use of com.sk89q.worldedit.extension.input.NoMatchException in project FastAsyncWorldEdit by IntellectualSites.

the class MaskFactory method parseFromParsers.

// FAWE start - rich mask parsing
private void parseFromParsers(final ParserContext context, final List<Mask> masks, final String component) {
    Mask match = null;
    for (InputParser<Mask> parser : getParsers()) {
        match = parser.parseFromInput(component, context);
        if (match != null) {
            break;
        }
    }
    if (match == null) {
        throw new NoMatchException(Caption.of("worldedit.error.no-match", TextComponent.of(component)));
    }
    masks.add(match);
}
Also used : Mask(com.sk89q.worldedit.function.mask.Mask) NoMatchException(com.sk89q.worldedit.extension.input.NoMatchException)

Example 3 with NoMatchException

use of com.sk89q.worldedit.extension.input.NoMatchException in project FastAsyncWorldEdit by IntellectualSites.

the class DefaultBlockParser method parseProperties.

// FAWE start - make public
public static Map<Property<?>, Object> parseProperties(// FAWE end
BlockType type, String[] stateProperties, ParserContext context, // FAWE start - if null should be returned instead of throwing an error
boolean nullNotError) throws // FAWE end
NoMatchException {
    Map<Property<?>, Object> blockStates = new HashMap<>();
    // FAWE start - disallowed states
    if (context != null && context.getActor() != null && !context.getActor().getLimit().isUnlimited()) {
        for (String input : context.getActor().getLimit().DISALLOWED_BLOCKS) {
            if (input.indexOf('[') == -1 && input.indexOf(']') == -1) {
                continue;
            }
            if (!type.getId().equalsIgnoreCase(input.substring(0, input.indexOf('[')))) {
                continue;
            }
            String[] properties = input.substring(input.indexOf('[') + 1, input.indexOf(']')).split(",");
            Set<String> blocked = Arrays.stream(properties).filter(s -> {
                for (String in : stateProperties) {
                    if (in.equalsIgnoreCase(s)) {
                        return true;
                    }
                }
                return false;
            }).collect(Collectors.toSet());
            if (!blocked.isEmpty()) {
                throw new DisallowedUsageException(Caption.of("fawe.error.limit.disallowed-block", TextComponent.of(input)));
            }
        }
    }
    if (stateProperties.length > 0) {
        // Parse the block data (optional)
        for (String parseableData : stateProperties) {
            try {
                String[] parts = parseableData.split("=");
                if (parts.length != 2) {
                    // FAWE start - if null should be returned instead of throwing an error
                    if (nullNotError) {
                        return null;
                    }
                    // FAWE end
                    throw new InputParseException(Caption.of("worldedit.error.parser.bad-state-format", TextComponent.of(parseableData)));
                }
                @SuppressWarnings("unchecked") Property<Object> propertyKey = (Property<Object>) type.getPropertyMap().get(parts[0]);
                if (propertyKey == null) {
                    // FAWE start - nullable context
                    if (context != null && context.getActor() != null) {
                        // FAWE start - if null should be returned instead of throwing an error
                        if (nullNotError) {
                            return null;
                        }
                        // FAWE end
                        throw new NoMatchException(Caption.of("worldedit.error.parser.unknown-property", TextComponent.of(parts[0]), TextComponent.of(type.getId())));
                    } else {
                        WorldEdit.logger.debug("Unknown property " + parts[0] + " for block " + type.getId());
                    }
                    return Maps.newHashMap();
                }
                if (blockStates.containsKey(propertyKey)) {
                    // FAWE start - if null should be returned instead of throwing an error
                    if (nullNotError) {
                        return null;
                    }
                    // FAWE end
                    throw new InputParseException(Caption.of("worldedit.error.parser.duplicate-property", TextComponent.of(parts[0])));
                }
                Object value;
                try {
                    value = propertyKey.getValueFor(parts[1]);
                } catch (IllegalArgumentException e) {
                    // FAWE start - if null should be returned instead of throwing an error
                    if (nullNotError) {
                        return null;
                    }
                    // FAWE end
                    throw new NoMatchException(Caption.of("worldedit.error.parser.unknown-value", TextComponent.of(parts[1]), TextComponent.of(propertyKey.getName())));
                }
                // FAWE start - blocked states
                if (context != null && context.getActor() != null && !context.getActor().getLimit().isUnlimited()) {
                    if (context.getActor().getLimit().REMAP_PROPERTIES != null && !context.getActor().getLimit().REMAP_PROPERTIES.isEmpty()) {
                        for (PropertyRemap remap : context.getActor().getLimit().REMAP_PROPERTIES) {
                            Object newValue = remap.apply(type, value);
                            if (newValue != value) {
                                value = newValue;
                                break;
                            }
                        }
                    }
                }
                // FAWE end
                blockStates.put(propertyKey, value);
            } catch (NoMatchException | DisallowedUsageException e) {
                // Pass-through
                throw e;
            } catch (Exception e) {
                // FAWE start - if null should be returned instead of throwing an error
                if (nullNotError) {
                    return null;
                }
                // FAWE end
                throw new InputParseException(Caption.of("worldedit.error.parser.bad-state-format", TextComponent.of(parseableData)));
            }
        }
    }
    return blockStates;
}
Also used : Property(com.sk89q.worldedit.registry.state.Property) Arrays(java.util.Arrays) SignBlock(com.sk89q.worldedit.blocks.SignBlock) BlockTypes(com.sk89q.worldedit.world.block.BlockTypes) BlockVector3(com.sk89q.worldedit.math.BlockVector3) Player(com.sk89q.worldedit.entity.Player) World(com.sk89q.worldedit.world.World) Caption(com.fastasyncworldedit.core.configuration.Caption) SkullBlock(com.sk89q.worldedit.blocks.SkullBlock) EntityType(com.sk89q.worldedit.world.entity.EntityType) InputParseException(com.sk89q.worldedit.extension.input.InputParseException) JSON2NBT(com.fastasyncworldedit.core.jnbt.JSON2NBT) Locale(java.util.Locale) DisallowedUsageException(com.sk89q.worldedit.extension.input.DisallowedUsageException) Map(java.util.Map) NoMatchException(com.sk89q.worldedit.extension.input.NoMatchException) BlockStateHolder(com.sk89q.worldedit.world.block.BlockStateHolder) BlockType(com.sk89q.worldedit.world.block.BlockType) BaseItem(com.sk89q.worldedit.blocks.BaseItem) Set(java.util.Set) Collectors(java.util.stream.Collectors) BlockBag(com.sk89q.worldedit.extent.inventory.BlockBag) MathMan(com.fastasyncworldedit.core.util.MathMan) NotABlockException(com.sk89q.worldedit.NotABlockException) Stream(java.util.stream.Stream) InputParser(com.sk89q.worldedit.internal.registry.InputParser) LegacyMapper(com.sk89q.worldedit.world.registry.LegacyMapper) CompoundTag(com.sk89q.jnbt.CompoundTag) BaseBlock(com.sk89q.worldedit.world.block.BaseBlock) SuggestionHelper(com.sk89q.worldedit.command.util.SuggestionHelper) BlockCategories(com.sk89q.worldedit.world.block.BlockCategories) HashMap(java.util.HashMap) BlanketBaseBlock(com.fastasyncworldedit.core.world.block.BlanketBaseBlock) PropertyRemap(com.fastasyncworldedit.core.limit.PropertyRemap) ParserContext(com.sk89q.worldedit.extension.input.ParserContext) StringMan(com.fastasyncworldedit.core.util.StringMan) FuzzyBlockState(com.sk89q.worldedit.world.block.FuzzyBlockState) WorldEditException(com.sk89q.worldedit.WorldEditException) MobSpawnerBlock(com.sk89q.worldedit.blocks.MobSpawnerBlock) WorldEdit(com.sk89q.worldedit.WorldEdit) HandSide(com.sk89q.worldedit.util.HandSide) IncompleteRegionException(com.sk89q.worldedit.IncompleteRegionException) TextComponent(com.sk89q.worldedit.util.formatting.text.TextComponent) NBTException(com.fastasyncworldedit.core.jnbt.NBTException) FaweLimit(com.fastasyncworldedit.core.limit.FaweLimit) Maps(com.google.common.collect.Maps) Actor(com.sk89q.worldedit.extension.platform.Actor) EntityTypes(com.sk89q.worldedit.world.entity.EntityTypes) SlottableBlockBag(com.fastasyncworldedit.core.extent.inventory.SlottableBlockBag) Capability(com.sk89q.worldedit.extension.platform.Capability) BlockState(com.sk89q.worldedit.world.block.BlockState) HashMap(java.util.HashMap) PropertyRemap(com.fastasyncworldedit.core.limit.PropertyRemap) InputParseException(com.sk89q.worldedit.extension.input.InputParseException) DisallowedUsageException(com.sk89q.worldedit.extension.input.DisallowedUsageException) NoMatchException(com.sk89q.worldedit.extension.input.NoMatchException) NotABlockException(com.sk89q.worldedit.NotABlockException) WorldEditException(com.sk89q.worldedit.WorldEditException) IncompleteRegionException(com.sk89q.worldedit.IncompleteRegionException) NBTException(com.fastasyncworldedit.core.jnbt.NBTException) DisallowedUsageException(com.sk89q.worldedit.extension.input.DisallowedUsageException) InputParseException(com.sk89q.worldedit.extension.input.InputParseException) NoMatchException(com.sk89q.worldedit.extension.input.NoMatchException) Property(com.sk89q.worldedit.registry.state.Property)

Example 4 with NoMatchException

use of com.sk89q.worldedit.extension.input.NoMatchException in project FastAsyncWorldEdit by IntellectualSites.

the class DefaultBlockParser method parseLogic.

private BaseBlock parseLogic(String input, ParserContext context) throws InputParseException {
    // FAWE start
    String[] blockAndExtraData = input.trim().split("\\|", 2);
    blockAndExtraData[0] = woolMapper(blockAndExtraData[0]);
    Map<Property<?>, Object> blockStates = new HashMap<>();
    // FAWE end
    BlockState state = null;
    // Legacy matcher
    if (context.isTryingLegacy()) {
        try {
            String[] split = blockAndExtraData[0].split(":", 2);
            if (split.length == 0) {
                throw new InputParseException(Caption.of("worldedit.error.parser.invalid-colon"));
            } else if (split.length == 1) {
                state = LegacyMapper.getInstance().getBlockFromLegacy(Integer.parseInt(split[0]));
            } else if (MathMan.isInteger(split[0])) {
                int id = Integer.parseInt(split[0]);
                int data = Integer.parseInt(split[1]);
                // FAWE start
                if (data < 0 || data >= 16) {
                    throw new InputParseException(Caption.of("fawe.error.parser.invalid-data", TextComponent.of(data)));
                }
                state = LegacyMapper.getInstance().getBlockFromLegacy(id, data);
            } else {
                BlockType type = BlockTypes.get(split[0].toLowerCase(Locale.ROOT));
                if (type != null) {
                    int data = Integer.parseInt(split[1]);
                    if (data < 0 || data >= 16) {
                        throw new InputParseException(Caption.of("fawe.error.parser.invalid-data", TextComponent.of(data)));
                    }
                    state = LegacyMapper.getInstance().getBlockFromLegacy(type.getLegacyCombinedId() >> 4, data);
                }
            }
        } catch (NumberFormatException ignored) {
        }
    }
    CompoundTag nbt = null;
    // FAWE end
    if (state == null) {
        String typeString;
        String stateString = null;
        int stateStart = blockAndExtraData[0].indexOf('[');
        if (stateStart == -1) {
            typeString = blockAndExtraData[0];
        } else {
            typeString = blockAndExtraData[0].substring(0, stateStart);
            if (stateStart + 1 >= blockAndExtraData[0].length()) {
                throw new InputParseException(Caption.of("worldedit.error.parser.hanging-lbracket", TextComponent.of(stateStart)));
            }
            int stateEnd = blockAndExtraData[0].lastIndexOf(']');
            if (stateEnd < 0) {
                throw new InputParseException(Caption.of("worldedit.error.parser.missing-rbracket"));
            }
            stateString = blockAndExtraData[0].substring(stateStart + 1, blockAndExtraData[0].length() - 1);
        }
        String[] stateProperties = EMPTY_STRING_ARRAY;
        if (stateString != null) {
            stateProperties = stateString.split(",");
        }
        if (typeString.isEmpty()) {
            throw new InputParseException(Caption.of("worldedit.error.parser.bad-state-format", TextComponent.of(blockAndExtraData[0])));
        }
        if ("hand".equalsIgnoreCase(typeString)) {
            // Get the block type from the item in the user's hand.
            final BaseBlock blockInHand = getBlockInHand(context.requireActor(), HandSide.MAIN_HAND);
            // FAWE start
            state = blockInHand.toBlockState();
            nbt = blockInHand.getNbtData();
        // FAWE end
        } else if ("offhand".equalsIgnoreCase(typeString)) {
            // Get the block type from the item in the user's off hand.
            final BaseBlock blockInHand = getBlockInHand(context.requireActor(), HandSide.OFF_HAND);
            // FAWE start
            state = blockInHand.toBlockState();
            nbt = blockInHand.getNbtData();
        // FAWE end
        } else if (typeString.matches("pos[0-9]+")) {
            int index = Integer.parseInt(typeString.replaceAll("[a-z]+", ""));
            // Get the block type from the "primary position"
            final World world = context.requireWorld();
            final BlockVector3 primaryPosition;
            try {
                primaryPosition = context.requireSession().getRegionSelector(world).getVertices().get(index - 1);
            } catch (IncompleteRegionException e) {
                throw new InputParseException(Caption.of("worldedit.error.incomplete-region"));
            }
            state = world.getBlock(primaryPosition);
            nbt = state.getNbtData();
        // FAWE start
        } else if (typeString.matches("slot[0-9]+")) {
            int slot = Integer.parseInt(typeString.substring(4)) - 1;
            Actor actor = context.requireActor();
            if (!(actor instanceof Player)) {
                throw new InputParseException(Caption.of("worldedit.command.player-only"));
            }
            Player player = (Player) actor;
            BlockBag bag = player.getInventoryBlockBag();
            if (!(bag instanceof SlottableBlockBag)) {
                throw new InputParseException(Caption.of("fawe.error.unsupported"));
            }
            SlottableBlockBag slottable = (SlottableBlockBag) bag;
            BaseItem item = slottable.getItem(slot);
            if (!item.getType().hasBlockType()) {
                throw new InputParseException(Caption.of("worldedit.error.not-a-block"));
            }
            state = item.getType().getBlockType().getDefaultState();
            nbt = item.getNbtData();
        } else {
            BlockType type = BlockTypes.parse(typeString.toLowerCase(Locale.ROOT));
            if (type != null) {
                state = type.getDefaultState();
            }
            if (state == null) {
                throw new NoMatchException(Caption.of("fawe.error.invalid-block-type", TextComponent.of(input)));
            }
        }
        // FAWE end
        // FAWE start -  Not null if nullNotError false.
        blockStates.putAll(parseProperties(state.getBlockType(), stateProperties, context, false));
        // FAWE end
        if (context.isPreferringWildcard()) {
            if (stateString == null || stateString.isEmpty()) {
                state = new FuzzyBlockState(state);
            } else {
                FuzzyBlockState.Builder fuzzyBuilder = FuzzyBlockState.builder();
                fuzzyBuilder.type(state.getBlockType());
                for (Map.Entry<Property<?>, Object> blockState : blockStates.entrySet()) {
                    @SuppressWarnings("unchecked") Property<Object> objProp = (Property<Object>) blockState.getKey();
                    fuzzyBuilder.withProperty(objProp, blockState.getValue());
                }
                state = fuzzyBuilder.build();
            }
        } else {
            for (Map.Entry<Property<?>, Object> blockState : blockStates.entrySet()) {
                @SuppressWarnings("unchecked") Property<Object> objProp = (Property<Object>) blockState.getKey();
                state = state.with(objProp, blockState.getValue());
            }
        }
    }
    // this should be impossible but IntelliJ isn't that smart
    if (state == null) {
        throw new NoMatchException(Caption.of("worldedit.error.unknown-block", TextComponent.of(input)));
    }
    // FAWE start
    if (blockAndExtraData.length > 1 && blockAndExtraData[1].startsWith("{")) {
        String joined = StringMan.join(Arrays.copyOfRange(blockAndExtraData, 1, blockAndExtraData.length), "|");
        try {
            nbt = JSON2NBT.getTagFromJson(joined);
        } catch (NBTException e) {
            throw new NoMatchException(TextComponent.of(e.getMessage()));
        }
    }
    // FAWE end
    // Check if the item is allowed
    BlockType blockType = state.getBlockType();
    if (context.isRestricted()) {
        Actor actor = context.requireActor();
        // FAWE start - per-limit disallowed blocks
        if (actor != null) {
            if (!actor.hasPermission("worldedit.anyblock") && worldEdit.getConfiguration().disallowedBlocks.contains(blockType.getId().toLowerCase(Locale.ROOT))) {
                throw new DisallowedUsageException(Caption.of("worldedit.error.disallowed-block", TextComponent.of(blockType.getId())));
            }
            FaweLimit limit = actor.getLimit();
            if (!limit.isUnlimited()) {
                // during contains.
                if (limit.DISALLOWED_BLOCKS.contains(blockType.getId().toLowerCase(Locale.ROOT))) {
                    throw new DisallowedUsageException(Caption.of("fawe.error.limit.disallowed-block", TextComponent.of(blockType.getId())));
                }
            }
        }
    // FAWE end
    }
    if (nbt != null) {
        BaseBlock result = blockStates.size() > 0 ? state.toBaseBlock(nbt) : new BlanketBaseBlock(state, nbt);
        return validate(context, result);
    }
    if (blockType == BlockTypes.SIGN || blockType == BlockTypes.WALL_SIGN || BlockCategories.SIGNS.contains(blockType)) {
        // Allow special sign text syntax
        String[] text = new String[4];
        text[0] = blockAndExtraData.length > 1 ? blockAndExtraData[1] : "";
        text[1] = blockAndExtraData.length > 2 ? blockAndExtraData[2] : "";
        text[2] = blockAndExtraData.length > 3 ? blockAndExtraData[3] : "";
        text[3] = blockAndExtraData.length > 4 ? blockAndExtraData[4] : "";
        return validate(context, new SignBlock(state, text));
    } else if (blockType == BlockTypes.SPAWNER) {
        // Allow setting mob spawn type
        if (blockAndExtraData.length > 1) {
            String mobName = blockAndExtraData[1];
            EntityType ent = EntityTypes.get(mobName.toLowerCase(Locale.ROOT));
            if (ent == null) {
                throw new NoMatchException(Caption.of("worldedit.error.unknown-entity", TextComponent.of(mobName)));
            }
            mobName = ent.getId();
            if (!worldEdit.getPlatformManager().queryCapability(Capability.USER_COMMANDS).isValidMobType(mobName)) {
                throw new NoMatchException(Caption.of("worldedit.error.unknown-mob", TextComponent.of(mobName)));
            }
            return validate(context, new MobSpawnerBlock(state, mobName));
        } else {
            // noinspection ConstantConditions
            return validate(context, new MobSpawnerBlock(state, EntityTypes.PIG.getId()));
        }
    } else if (blockType == BlockTypes.PLAYER_HEAD || blockType == BlockTypes.PLAYER_WALL_HEAD) {
        // allow setting type/player/rotation
        if (blockAndExtraData.length <= 1) {
            return validate(context, new SkullBlock(state));
        }
        String type = blockAndExtraData[1];
        // valid MC usernames
        return validate(context, new SkullBlock(state, type.replace(" ", "_")));
    } else {
        // FAWE start
        nbt = state.getNbtData();
        BaseBlock result;
        if (nbt != null) {
            result = blockStates.size() > 0 ? state.toBaseBlock(nbt) : new BlanketBaseBlock(state, nbt);
        } else {
            result = blockStates.size() > 0 ? new BaseBlock(state) : state.toBaseBlock();
        }
        return validate(context, result);
    // FAWE end
    }
}
Also used : SkullBlock(com.sk89q.worldedit.blocks.SkullBlock) HashMap(java.util.HashMap) SignBlock(com.sk89q.worldedit.blocks.SignBlock) IncompleteRegionException(com.sk89q.worldedit.IncompleteRegionException) World(com.sk89q.worldedit.world.World) BlanketBaseBlock(com.fastasyncworldedit.core.world.block.BlanketBaseBlock) BaseBlock(com.sk89q.worldedit.world.block.BaseBlock) BlanketBaseBlock(com.fastasyncworldedit.core.world.block.BlanketBaseBlock) InputParseException(com.sk89q.worldedit.extension.input.InputParseException) FaweLimit(com.fastasyncworldedit.core.limit.FaweLimit) MobSpawnerBlock(com.sk89q.worldedit.blocks.MobSpawnerBlock) Actor(com.sk89q.worldedit.extension.platform.Actor) Property(com.sk89q.worldedit.registry.state.Property) BaseItem(com.sk89q.worldedit.blocks.BaseItem) CompoundTag(com.sk89q.jnbt.CompoundTag) Player(com.sk89q.worldedit.entity.Player) BlockBag(com.sk89q.worldedit.extent.inventory.BlockBag) SlottableBlockBag(com.fastasyncworldedit.core.extent.inventory.SlottableBlockBag) FuzzyBlockState(com.sk89q.worldedit.world.block.FuzzyBlockState) BlockVector3(com.sk89q.worldedit.math.BlockVector3) EntityType(com.sk89q.worldedit.world.entity.EntityType) DisallowedUsageException(com.sk89q.worldedit.extension.input.DisallowedUsageException) FuzzyBlockState(com.sk89q.worldedit.world.block.FuzzyBlockState) BlockState(com.sk89q.worldedit.world.block.BlockState) BlockType(com.sk89q.worldedit.world.block.BlockType) SlottableBlockBag(com.fastasyncworldedit.core.extent.inventory.SlottableBlockBag) NoMatchException(com.sk89q.worldedit.extension.input.NoMatchException) Map(java.util.Map) HashMap(java.util.HashMap) NBTException(com.fastasyncworldedit.core.jnbt.NBTException)

Example 5 with NoMatchException

use of com.sk89q.worldedit.extension.input.NoMatchException in project FastAsyncWorldEdit by IntellectualSites.

the class PatternFactory method parseFromParsers.

// FAWE start - rich pattern parsing
private void parseFromParsers(final ParserContext context, final List<Pattern> patterns, final String component) {
    Pattern match = null;
    for (InputParser<Pattern> parser : getParsers()) {
        match = parser.parseFromInput(component, context);
        if (match != null) {
            break;
        }
    }
    if (match == null) {
        throw new NoMatchException(Caption.of("worldedit.error.no-match", TextComponent.of(component)));
    }
    patterns.add(match);
}
Also used : RandomPattern(com.sk89q.worldedit.function.pattern.RandomPattern) Pattern(com.sk89q.worldedit.function.pattern.Pattern) NoMatchException(com.sk89q.worldedit.extension.input.NoMatchException)

Aggregations

NoMatchException (com.sk89q.worldedit.extension.input.NoMatchException)11 InputParseException (com.sk89q.worldedit.extension.input.InputParseException)6 Actor (com.sk89q.worldedit.extension.platform.Actor)4 Map (java.util.Map)4 BaseItem (com.sk89q.worldedit.blocks.BaseItem)3 ParserContext (com.sk89q.worldedit.extension.input.ParserContext)3 World (com.sk89q.worldedit.world.World)3 SuggestInputParseException (com.fastasyncworldedit.core.command.SuggestInputParseException)2 Caption (com.fastasyncworldedit.core.configuration.Caption)2 ResettableExtent (com.fastasyncworldedit.core.extent.ResettableExtent)2 SlottableBlockBag (com.fastasyncworldedit.core.extent.inventory.SlottableBlockBag)2 NBTException (com.fastasyncworldedit.core.jnbt.NBTException)2 FaweLimit (com.fastasyncworldedit.core.limit.FaweLimit)2 TrueRandom (com.fastasyncworldedit.core.math.random.TrueRandom)2 StringMan (com.fastasyncworldedit.core.util.StringMan)2 BlanketBaseBlock (com.fastasyncworldedit.core.world.block.BlanketBaseBlock)2 CompoundTag (com.sk89q.jnbt.CompoundTag)2 CommandLocals (com.sk89q.minecraft.util.commands.CommandLocals)2 IncompleteRegionException (com.sk89q.worldedit.IncompleteRegionException)2 WorldEdit (com.sk89q.worldedit.WorldEdit)2