public class EntitySelectorManager
extends java.lang.Object
IEntitySelectorType
to a String token. Modifier and Type | Field and Description |
---|---|
private static java.util.HashMap<java.lang.String,IEntitySelectorType> |
REGISTRY |
Constructor and Description |
---|
EntitySelectorManager() |
Modifier and Type | Method and Description |
---|---|
static void |
fillSelectorSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionBuilder)
This method is called in
EntitySelectorParser.fillSelectorSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder) |
static EntitySelector |
parseSelector(EntitySelectorParser parser)
This method is called in
EntitySelectorParser.parse() If the REGISTRY does not contain a custom selector for the command being parsed, this method returns null and the vanilla logic in EntitySelectorParser.parseSelector() is used. |
static void |
register(java.lang.String token,
IEntitySelectorType type)
|
private static final java.util.HashMap<java.lang.String,IEntitySelectorType> REGISTRY
public static void register(java.lang.String token, IEntitySelectorType type)
token
- Defines the name of the selectorpublic static EntitySelector parseSelector(EntitySelectorParser parser) throws com.mojang.brigadier.exceptions.CommandSyntaxException
EntitySelectorParser.parse()
null
and the vanilla logic in EntitySelectorParser.parseSelector()
is used.com.mojang.brigadier.exceptions.CommandSyntaxException
public static void fillSelectorSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionBuilder)
EntitySelectorParser.fillSelectorSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder)