mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 12:36:40 +00:00
Added suggestions to a lot of factory-related commands
This commit is contained in:
@ -52,6 +52,7 @@ import com.sk89q.worldedit.world.registry.LegacyMapper;
|
||||
import java.util.HashMap;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
/**
|
||||
* Parses block input strings.
|
||||
@ -199,6 +200,12 @@ public class DefaultBlockParser extends InputParser<BaseBlock> {
|
||||
return blockStates;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Stream<String> getSuggestions() {
|
||||
// TODO Include states
|
||||
return BlockType.REGISTRY.keySet().stream();
|
||||
}
|
||||
|
||||
private BaseBlock parseLogic(String input, ParserContext context) throws InputParseException {
|
||||
BlockType blockType = null;
|
||||
Map<Property<?>, Object> blockStates = new HashMap<>();
|
||||
|
Reference in New Issue
Block a user