Uses of Class
com.mojang.brigadier.tree.CommandNode
Packages that use CommandNode
Package
Description
-
Uses of CommandNode in com.mojang.brigadier
Fields in com.mojang.brigadier with type parameters of type CommandNodeModifier and TypeFieldDescriptionprivate final Map<CommandNode<S>, CommandSyntaxException> ParseResults.exceptionsprivate final Predicate<CommandNode<S>> CommandDispatcher.hasCommandMethods in com.mojang.brigadier that return CommandNodeModifier and TypeMethodDescriptionCommandDispatcher.findNode(Collection<String> path) Finds a node by its pathMethods in com.mojang.brigadier that return types with arguments of type CommandNodeModifier and TypeMethodDescriptionParseResults.getExceptions()Map<CommandNode<S>, String> CommandDispatcher.getSmartUsage(CommandNode<S> node, S source) Gets the possible executable commands from a specified node.Methods in com.mojang.brigadier with parameters of type CommandNodeModifier and TypeMethodDescriptionprivate voidCommandDispatcher.addPaths(CommandNode<S> node, List<List<CommandNode<S>>> result, List<CommandNode<S>> parents) voidAmbiguityConsumer.ambiguous(CommandNode<S> parent, CommandNode<S> child, CommandNode<S> sibling, Collection<String> inputs) String[]CommandDispatcher.getAllUsage(CommandNode<S> node, S source, boolean restricted) Gets all possible executable commands following the given node.private voidCommandDispatcher.getAllUsage(CommandNode<S> node, S source, ArrayList<String> result, String prefix, boolean restricted) CommandDispatcher.getPath(CommandNode<S> target) Finds a valid path to a given node on the command tree.Map<CommandNode<S>, String> CommandDispatcher.getSmartUsage(CommandNode<S> node, S source) Gets the possible executable commands from a specified node.private StringCommandDispatcher.getSmartUsage(CommandNode<S> node, S source, boolean optional, boolean deep) private ParseResults<S> CommandDispatcher.parseNodes(CommandNode<S> node, StringReader originalReader, CommandContextBuilder<S> contextSoFar) Method parameters in com.mojang.brigadier with type arguments of type CommandNodeModifier and TypeMethodDescriptionprivate voidCommandDispatcher.addPaths(CommandNode<S> node, List<List<CommandNode<S>>> result, List<CommandNode<S>> parents) Constructor parameters in com.mojang.brigadier with type arguments of type CommandNodeModifierConstructorDescriptionParseResults(CommandContextBuilder<S> context, ImmutableStringReader reader, Map<CommandNode<S>, CommandSyntaxException> exceptions) -
Uses of CommandNode in com.mojang.brigadier.builder
Fields in com.mojang.brigadier.builder declared as CommandNodeMethods in com.mojang.brigadier.builder that return CommandNodeModifier and TypeMethodDescriptionabstract CommandNode<S> ArgumentBuilder.build()ArgumentBuilder.getRedirect()Methods in com.mojang.brigadier.builder that return types with arguments of type CommandNodeMethods in com.mojang.brigadier.builder with parameters of type CommandNodeModifier and TypeMethodDescriptionArgumentBuilder.fork(CommandNode<S> target, RedirectModifier<S> modifier) ArgumentBuilder.forward(CommandNode<S> target, RedirectModifier<S> modifier, boolean fork) ArgumentBuilder.redirect(CommandNode<S> target) ArgumentBuilder.redirect(CommandNode<S> target, SingleRedirectModifier<S> modifier) ArgumentBuilder.then(CommandNode<S> argument) -
Uses of CommandNode in com.mojang.brigadier.context
Fields in com.mojang.brigadier.context declared as CommandNodeModifier and TypeFieldDescriptionprivate final CommandNode<S> ParsedCommandNode.nodefinal CommandNode<S> SuggestionContext.parentprivate final CommandNode<S> CommandContext.rootNodeprivate final CommandNode<S> CommandContextBuilder.rootNodeMethods in com.mojang.brigadier.context that return CommandNodeModifier and TypeMethodDescriptionParsedCommandNode.getNode()CommandContext.getRootNode()CommandContextBuilder.getRootNode()Methods in com.mojang.brigadier.context with parameters of type CommandNodeModifier and TypeMethodDescriptionCommandContextBuilder.withNode(CommandNode<S> node, StringRange range) Constructors in com.mojang.brigadier.context with parameters of type CommandNodeModifierConstructorDescriptionCommandContext(S source, String input, Map<String, ParsedArgument<S, ?>> arguments, Command<S> command, CommandNode<S> rootNode, List<ParsedCommandNode<S>> nodes, StringRange range, CommandContext<S> child, RedirectModifier<S> modifier, boolean forks) CommandContextBuilder(CommandDispatcher<S> dispatcher, S source, CommandNode<S> rootNode, int start) ParsedCommandNode(CommandNode<S> node, StringRange range) SuggestionContext(CommandNode<S> parent, int startPos) -
Uses of CommandNode in com.mojang.brigadier.tree
Subclasses of CommandNode in com.mojang.brigadier.treeClasses in com.mojang.brigadier.tree that implement interfaces with type arguments of type CommandNodeFields in com.mojang.brigadier.tree declared as CommandNodeFields in com.mojang.brigadier.tree with type parameters of type CommandNodeMethods in com.mojang.brigadier.tree that return CommandNodeMethods in com.mojang.brigadier.tree that return types with arguments of type CommandNodeModifier and TypeMethodDescriptionCommandNode.getChildren()Collection<? extends CommandNode<S>> CommandNode.getRelevantNodes(StringReader input) Methods in com.mojang.brigadier.tree with parameters of type CommandNodeModifier and TypeMethodDescriptionvoidCommandNode.addChild(CommandNode<S> node) intCommandNode.compareTo(CommandNode<S> o) Constructors in com.mojang.brigadier.tree with parameters of type CommandNodeModifierConstructorDescriptionArgumentCommandNode(String name, ArgumentType<T> type, Command<S> command, Predicate<S> requirement, CommandNode<S> redirect, RedirectModifier<S> modifier, boolean forks, SuggestionProvider<S> customSuggestions) protectedCommandNode(Command<S> command, Predicate<S> requirement, CommandNode<S> redirect, RedirectModifier<S> modifier, boolean forks) LiteralCommandNode(String literal, Command<S> command, Predicate<S> requirement, CommandNode<S> redirect, RedirectModifier<S> modifier, boolean forks) -
Uses of CommandNode in net.minecraft.commands
Methods in net.minecraft.commands with parameters of type CommandNodeModifier and TypeMethodDescriptionprivate static <S> voidCommands.fillUsableCommands(CommandNode<S> source, CommandNode<S> target, S commandFilter, Map<CommandNode<S>, CommandNode<S>> converted) Method parameters in net.minecraft.commands with type arguments of type CommandNodeModifier and TypeMethodDescriptionprivate static <S> voidCommands.fillUsableCommands(CommandNode<S> source, CommandNode<S> target, S commandFilter, Map<CommandNode<S>, CommandNode<S>> converted) private static <S> voidCommands.fillUsableCommands(CommandNode<S> source, CommandNode<S> target, S commandFilter, Map<CommandNode<S>, CommandNode<S>> converted) -
Uses of CommandNode in net.minecraft.commands.synchronization
Methods in net.minecraft.commands.synchronization with parameters of type CommandNodeModifier and TypeMethodDescriptionstatic <T> Set<ArgumentType<?>> ArgumentUtils.findUsedArgumentTypes(CommandNode<T> node) private static <T> voidArgumentUtils.findUsedArgumentTypes(CommandNode<T> node, Set<ArgumentType<?>> output, Set<CommandNode<T>> visitedNodes) static <S> com.google.gson.JsonObjectArgumentUtils.serializeNodeToJson(CommandDispatcher<S> dispatcher, CommandNode<S> node) -
Uses of CommandNode in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game with type parameters of type CommandNodeModifier and TypeFieldDescriptionprivate final List<CommandNode<S>> ClientboundCommandsPacket.NodeResolver.nodesMethods in net.minecraft.network.protocol.game that return CommandNodeMethods in net.minecraft.network.protocol.game that return types with arguments of type CommandNodeModifier and TypeMethodDescriptionprivate static <S> it.unimi.dsi.fastutil.objects.Object2IntMap<CommandNode<S>> ClientboundCommandsPacket.enumerateNodes(RootCommandNode<S> root) Methods in net.minecraft.network.protocol.game with parameters of type CommandNodeModifier and TypeMethodDescriptionprivate static <S> ClientboundCommandsPacket.EntryClientboundCommandsPacket.createEntry(CommandNode<S> node, ClientboundCommandsPacket.NodeInspector<S> inspector, it.unimi.dsi.fastutil.objects.Object2IntMap<CommandNode<S>> ids) booleanClientboundCommandsPacket.NodeInspector.isExecutable(CommandNode<S> node) booleanClientboundCommandsPacket.NodeInspector.isRestricted(CommandNode<S> node) Method parameters in net.minecraft.network.protocol.game with type arguments of type CommandNodeModifier and TypeMethodDescriptionprivate static <S> List<ClientboundCommandsPacket.Entry> ClientboundCommandsPacket.createEntries(it.unimi.dsi.fastutil.objects.Object2IntMap<CommandNode<S>> nodeToId, ClientboundCommandsPacket.NodeInspector<S> inspector) private static <S> ClientboundCommandsPacket.EntryClientboundCommandsPacket.createEntry(CommandNode<S> node, ClientboundCommandsPacket.NodeInspector<S> inspector, it.unimi.dsi.fastutil.objects.Object2IntMap<CommandNode<S>> ids) -
Uses of CommandNode in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type CommandNodeModifier and TypeMethodDescriptionprivate static ArgumentBuilder<CommandSourceStack, ?> ExecuteCommand.addConditional(CommandNode<CommandSourceStack> root, ArgumentBuilder<CommandSourceStack, ?> argument, boolean expected, ExecuteCommand.CommandPredicate predicate) private static ArgumentBuilder<CommandSourceStack, ?> ExecuteCommand.addConditionals(CommandNode<CommandSourceStack> execute, LiteralArgumentBuilder<CommandSourceStack> parent, boolean expected, CommandBuildContext context) private static ArgumentBuilder<CommandSourceStack, ?> ExecuteCommand.addIfBlocksConditional(CommandNode<CommandSourceStack> root, ArgumentBuilder<CommandSourceStack, ?> argument, boolean expected, boolean skipAir) private static LiteralArgumentBuilder<CommandSourceStack> ExecuteCommand.createRelationOperations(CommandNode<CommandSourceStack> execute, LiteralArgumentBuilder<CommandSourceStack> on) -
Uses of CommandNode in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type CommandNodeModifier and TypeMethodDescriptionprivate static <S> voidClientCommandHandler.copy(CommandNode<S> sourceNode, CommandNode<S> resultNode) Creates a deep copy of the sourceNode while keeping the redirects referring to the old command tree -
Uses of CommandNode in net.neoforged.neoforge.network.filters
Methods in net.neoforged.neoforge.network.filters that return CommandNodeModifier and TypeMethodDescriptionprivate static <S> CommandNode<S> CommandTreeCleaner.cloneNode(CommandNode<S> node, Predicate<CommandNode<?>> nodeFilter, Map<CommandNode<S>, CommandNode<S>> newNodes) private static <S> CommandNode<S> CommandTreeCleaner.processCommandNode(CommandNode<S> node, Predicate<CommandNode<?>> nodeFilter, Map<CommandNode<S>, CommandNode<S>> newNodes) Methods in net.neoforged.neoforge.network.filters with parameters of type CommandNodeModifier and TypeMethodDescriptionprivate static <S> CommandNode<S> CommandTreeCleaner.cloneNode(CommandNode<S> node, Predicate<CommandNode<?>> nodeFilter, Map<CommandNode<S>, CommandNode<S>> newNodes) private static <S> CommandNode<S> CommandTreeCleaner.processCommandNode(CommandNode<S> node, Predicate<CommandNode<?>> nodeFilter, Map<CommandNode<S>, CommandNode<S>> newNodes) Method parameters in net.neoforged.neoforge.network.filters with type arguments of type CommandNodeModifier and TypeMethodDescriptionprivate static <S> CommandNode<S> CommandTreeCleaner.cloneNode(CommandNode<S> node, Predicate<CommandNode<?>> nodeFilter, Map<CommandNode<S>, CommandNode<S>> newNodes) private static <S> CommandNode<S> CommandTreeCleaner.cloneNode(CommandNode<S> node, Predicate<CommandNode<?>> nodeFilter, Map<CommandNode<S>, CommandNode<S>> newNodes) private static <S> CommandNode<S> CommandTreeCleaner.cloneNode(CommandNode<S> node, Predicate<CommandNode<?>> nodeFilter, Map<CommandNode<S>, CommandNode<S>> newNodes) private static <S> CommandNode<S> CommandTreeCleaner.processCommandNode(CommandNode<S> node, Predicate<CommandNode<?>> nodeFilter, Map<CommandNode<S>, CommandNode<S>> newNodes) private static <S> CommandNode<S> CommandTreeCleaner.processCommandNode(CommandNode<S> node, Predicate<CommandNode<?>> nodeFilter, Map<CommandNode<S>, CommandNode<S>> newNodes) private static <S> CommandNode<S> CommandTreeCleaner.processCommandNode(CommandNode<S> node, Predicate<CommandNode<?>> nodeFilter, Map<CommandNode<S>, CommandNode<S>> newNodes) -
Uses of CommandNode in net.neoforged.neoforge.server.command
Methods in net.neoforged.neoforge.server.command that return CommandNodeModifier and TypeMethodDescriptionprivate static <S,T> CommandNode <T> CommandHelper.toResult(CommandNode<S> sourceNode, Map<CommandNode<S>, CommandNode<T>> sourceToResult, S canUse, Command<T> execute, Function<SuggestionProvider<S>, SuggestionProvider<T>> sourceToResultSuggestion) Creates a deep copy of a command node with a different source stackMethods in net.neoforged.neoforge.server.command with parameters of type CommandNodeModifier and TypeMethodDescriptionstatic <S,T> void CommandHelper.mergeCommandNode(CommandNode<S> sourceNode, CommandNode<T> resultNode, Map<CommandNode<S>, CommandNode<T>> sourceToResult, S canUse, Command<T> execute, Function<SuggestionProvider<S>, SuggestionProvider<T>> sourceToResultSuggestion) Deep copies the children of a command node and stores a link between the source and the copyprivate static <S,T> CommandNode <T> CommandHelper.toResult(CommandNode<S> sourceNode, Map<CommandNode<S>, CommandNode<T>> sourceToResult, S canUse, Command<T> execute, Function<SuggestionProvider<S>, SuggestionProvider<T>> sourceToResultSuggestion) Creates a deep copy of a command node with a different source stackMethod parameters in net.neoforged.neoforge.server.command with type arguments of type CommandNodeModifier and TypeMethodDescriptionstatic <S,T> void CommandHelper.mergeCommandNode(CommandNode<S> sourceNode, CommandNode<T> resultNode, Map<CommandNode<S>, CommandNode<T>> sourceToResult, S canUse, Command<T> execute, Function<SuggestionProvider<S>, SuggestionProvider<T>> sourceToResultSuggestion) Deep copies the children of a command node and stores a link between the source and the copystatic <S,T> void CommandHelper.mergeCommandNode(CommandNode<S> sourceNode, CommandNode<T> resultNode, Map<CommandNode<S>, CommandNode<T>> sourceToResult, S canUse, Command<T> execute, Function<SuggestionProvider<S>, SuggestionProvider<T>> sourceToResultSuggestion) Deep copies the children of a command node and stores a link between the source and the copyprivate static <S,T> CommandNode <T> CommandHelper.toResult(CommandNode<S> sourceNode, Map<CommandNode<S>, CommandNode<T>> sourceToResult, S canUse, Command<T> execute, Function<SuggestionProvider<S>, SuggestionProvider<T>> sourceToResultSuggestion) Creates a deep copy of a command node with a different source stackprivate static <S,T> CommandNode <T> CommandHelper.toResult(CommandNode<S> sourceNode, Map<CommandNode<S>, CommandNode<T>> sourceToResult, S canUse, Command<T> execute, Function<SuggestionProvider<S>, SuggestionProvider<T>> sourceToResultSuggestion) Creates a deep copy of a command node with a different source stack