Interface IEntitySelectorType

    • Method Detail

      • build

        EntitySelector build​(EntitySelectorParser parser)
                      throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Returns an EntitySelector based on the given EntitySelectorParser.
        Use EntitySelectorParser.getReader() to read extra arguments and EntitySelectorParser#addFilter to add the corresponding filters.
        If the token being parsed does not match the syntax of this selector, this method should throw an appropriate CommandSyntaxException.
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • getSuggestionTooltip

        ITextComponent getSuggestionTooltip()
        Returns an ITextComponent containing a short description for this selector type.