mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-13 02:18:34 +00:00
Remove stub injector methods
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
|
||||
package com.sk89q.worldedit.extension.factory;
|
||||
|
||||
import com.sk89q.util.StringUtil;
|
||||
import com.sk89q.worldedit.WorldEdit;
|
||||
import com.sk89q.worldedit.blocks.BaseBlock;
|
||||
import com.sk89q.worldedit.world.block.BlockState;
|
||||
@ -62,7 +63,8 @@ public class BlockFactory extends AbstractFactory<BlockStateHolder> {
|
||||
*/
|
||||
public Set<BlockStateHolder> parseFromListInput(String input, ParserContext context) throws InputParseException {
|
||||
Set<BlockStateHolder> blocks = new HashSet<>();
|
||||
for (String token : input.split(",")) {
|
||||
String[] splits = input.split(",");
|
||||
for (String token : StringUtil.parseListInQuotes(splits, ',', '[', ']')) {
|
||||
blocks.add(parseFromInput(token, context));
|
||||
}
|
||||
return blocks;
|
||||
|
@ -163,7 +163,5 @@ public class DefaultMaskParser extends FaweParser<Mask> {
|
||||
}
|
||||
}
|
||||
|
||||
public static Class<?> inject() {
|
||||
return DefaultMaskParser.class;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -146,7 +146,5 @@ public class DefaultTransformParser extends FaweParser<ResettableExtent> {
|
||||
}
|
||||
}
|
||||
|
||||
public static Class<?> inject() {
|
||||
return HashTagPatternParser.class;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -135,7 +135,5 @@ public class HashTagPatternParser extends FaweParser<Pattern> {
|
||||
}
|
||||
}
|
||||
|
||||
public static Class<?> inject() {
|
||||
return HashTagPatternParser.class;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -42,7 +42,6 @@ public final class PatternFactory extends AbstractFactory<Pattern> {
|
||||
|
||||
parsers.add(new HashTagPatternParser(worldEdit));
|
||||
parsers.add(new SingleBlockPatternParser(worldEdit));
|
||||
parsers.add(new RandomPatternParser(worldEdit));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
package com.sk89q.worldedit.extension.factory;
|
||||
|
||||
import com.sk89q.util.StringUtil;
|
||||
import com.sk89q.worldedit.WorldEdit;
|
||||
import com.sk89q.worldedit.world.block.BlockStateHolder;
|
||||
import com.sk89q.worldedit.world.block.BlockState;
|
||||
@ -40,7 +41,8 @@ class RandomPatternParser extends InputParser<Pattern> {
|
||||
BlockFactory blockRegistry = worldEdit.getBlockFactory();
|
||||
RandomPattern randomPattern = new RandomPattern();
|
||||
|
||||
for (String token : input.split(",")) {
|
||||
String[] splits = input.split(",");
|
||||
for (String token : StringUtil.parseListInQuotes(splits, ',', '[', ']')) {
|
||||
BlockStateHolder block;
|
||||
|
||||
double chance;
|
||||
|
Reference in New Issue
Block a user