public interface IEntitySelectorType
EntitySelectorManager.register(java.lang.String, net.minecraftforge.common.command.IEntitySelectorType)
Modifier and Type | Method and Description |
---|---|
EntitySelector |
build(EntitySelectorParser parser)
Returns an
EntitySelector based on the given EntitySelectorParser . |
ITextComponent |
getSuggestionTooltip()
Returns an
ITextComponent containing a short description for this selector type. |
EntitySelector build(EntitySelectorParser parser) throws com.mojang.brigadier.exceptions.CommandSyntaxException
EntitySelector
based on the given EntitySelectorParser
. EntitySelectorParser.getReader()
to read extra arguments and EntitySelectorParser.addFilter(java.util.function.Predicate<net.minecraft.entity.Entity>)
to add the corresponding filters. CommandSyntaxException
.com.mojang.brigadier.exceptions.CommandSyntaxException
ITextComponent getSuggestionTooltip()
ITextComponent
containing a short description for this selector type.