Class EntitySelectorManager
java.lang.Object
net.minecraftforge.common.command.EntitySelectorManager
Allows modders to register custom entity selectors by assigning an 
The token "test", for example, corresponds to @test[...] in a command.
IEntitySelectorType to a String token. The token "test", for example, corresponds to @test[...] in a command.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidfillSelectorSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionBuilder) This method is called inEntitySelectorParser#fillSelectorSuggestions(SuggestionsBuilder)static EntitySelectorparseSelector(EntitySelectorParser parser) This method is called inEntitySelectorParser.parse()
 If the REGISTRY does not contain a custom selector for the command being parsed, this method returnsnulland the vanilla logic inEntitySelectorParser#parseSelector()is used.static voidregister(String token, IEntitySelectorType type) 
- 
Field Details- 
REGISTRY
 
- 
- 
Constructor Details- 
EntitySelectorManagerpublic EntitySelectorManager()
 
- 
- 
Method Details- 
register- Parameters:
- token- Defines the name of the selector
 
- 
parseSelectorpublic static EntitySelector parseSelector(EntitySelectorParser parser) throws com.mojang.brigadier.exceptions.CommandSyntaxException This method is called inEntitySelectorParser.parse()
 If the REGISTRY does not contain a custom selector for the command being parsed, this method returnsnulland the vanilla logic inEntitySelectorParser#parseSelector()is used.- Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
fillSelectorSuggestionspublic static void fillSelectorSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionBuilder) This method is called inEntitySelectorParser#fillSelectorSuggestions(SuggestionsBuilder)
 
-