Uses of Class
net.minecraft.commands.arguments.selector.EntitySelectorParser
Packages that use EntitySelectorParser
Package
Description
-
Uses of EntitySelectorParser in net.minecraft.commands.arguments.selector.options
Fields in net.minecraft.commands.arguments.selector.options with type parameters of type EntitySelectorParserModifier and TypeFieldDescriptionprivate final Predicate
<EntitySelectorParser> EntitySelectorOptions.Option.canUse
The field for thecanUse
record component.Methods in net.minecraft.commands.arguments.selector.options that return types with arguments of type EntitySelectorParserModifier and TypeMethodDescriptionEntitySelectorOptions.Option.canUse()
Returns the value of thecanUse
record component.Methods in net.minecraft.commands.arguments.selector.options with parameters of type EntitySelectorParserModifier and TypeMethodDescriptionEntitySelectorOptions.get
(EntitySelectorParser parser, String id, int cursor) void
EntitySelectorOptions.Modifier.handle
(EntitySelectorParser parser) static void
EntitySelectorOptions.suggestNames
(EntitySelectorParser parser, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) Method parameters in net.minecraft.commands.arguments.selector.options with type arguments of type EntitySelectorParserModifier and TypeMethodDescriptionstatic void
EntitySelectorOptions.register
(String id, EntitySelectorOptions.Modifier handler, Predicate<EntitySelectorParser> predicate, Component tooltip) Constructor parameters in net.minecraft.commands.arguments.selector.options with type arguments of type EntitySelectorParserModifierConstructorDescription(package private)
Option
(EntitySelectorOptions.Modifier modifier, Predicate<EntitySelectorParser> canUse, Component description) Creates an instance of aOption
record class. -
Uses of EntitySelectorParser in net.neoforged.neoforge.common.command
Methods in net.neoforged.neoforge.common.command with parameters of type EntitySelectorParserModifier and TypeMethodDescriptionIEntitySelectorType.build
(EntitySelectorParser parser) Returns anEntitySelector
based on the givenEntitySelectorParser
.static EntitySelector
EntitySelectorManager.parseSelector
(EntitySelectorParser parser) This method is called inparse()
If the REGISTRY does not contain a custom selector for the command being parsed, this method returnsnull
and the vanilla logic inEntitySelectorParser#parseSelector()
is used.