use of com.fastasyncworldedit.core.extent.transform.PatternTransform in project FastAsyncWorldEdit by IntellectualSites.
the class PatternTransformParser method parseFromInput.
@Override
protected ResettableExtent parseFromInput(@NotNull String[] arguments, ParserContext context) throws InputParseException {
if (arguments.length > 2) {
return null;
}
Pattern pattern = worldEdit.getPatternFactory().parseFromInput(arguments[0], context);
Extent extent = arguments.length == 2 ? worldEdit.getTransformFactory().parseFromInput(arguments[1], context) : context.requireExtent();
return new PatternTransform(extent, pattern);
}
Aggregations