Interface IEntitySelectorType
-
- All Known Implementing Classes:
EntitySelectorTest.ExampleCustomSelector
public interface IEntitySelectorType
Implementations of this interface can be registered usingEntitySelectorManager.register(java.lang.String, net.minecraftforge.common.command.IEntitySelectorType)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntitySelector
build(EntitySelectorParser parser)
Returns anEntitySelector
based on the givenEntitySelectorParser
.ITextComponent
getSuggestionTooltip()
Returns anITextComponent
containing a short description for this selector type.
-
-
-
Method Detail
-
build
EntitySelector build(EntitySelectorParser parser) throws com.mojang.brigadier.exceptions.CommandSyntaxException
Returns anEntitySelector
based on the givenEntitySelectorParser
.
UseEntitySelectorParser.getReader()
to read extra arguments andEntitySelectorParser#addFilter
to add the corresponding filters.
If the token being parsed does not match the syntax of this selector, this method should throw an appropriateCommandSyntaxException
.- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getSuggestionTooltip
ITextComponent getSuggestionTooltip()
Returns anITextComponent
containing a short description for this selector type.
-
-