Package net.minecraft.server.function
Class CommandFunction.CommandElement
java.lang.Object
net.minecraft.server.function.CommandFunction.CommandElement
- All Implemented Interfaces:
CommandFunction.Element
- Enclosing class:
CommandFunction
public static class CommandFunction.CommandElement
extends Object
implements CommandFunction.Element
A standard element of a command function. Functions created by
CommandFunction.create(net.minecraft.util.Identifier, com.mojang.brigadier.CommandDispatcher<net.minecraft.server.command.ServerCommandSource>, net.minecraft.server.command.ServerCommandSource, java.util.List<java.lang.String>)
will only contain these elements.- Mappings:
Namespace Name official dm$b
intermediary net/minecraft/class_2158$class_2160
named net/minecraft/server/function/CommandFunction$CommandElement
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.mojang.brigadier.ParseResults<ServerCommandSource>
-
Constructor Summary
ConstructorDescriptionCommandElement
(com.mojang.brigadier.ParseResults<ServerCommandSource> parsed) -
Method Summary
Modifier and TypeMethodDescriptionprivate int
execute
(CommandFunctionManager manager, ServerCommandSource source) void
execute
(CommandFunctionManager manager, ServerCommandSource source, Deque<CommandFunctionManager.Entry> entries, int maxChainLength, int depth, CommandFunctionManager.Tracer tracer) toString()
-
Field Details
-
parsed
- Mappings:
Namespace Name Mixin selector official a
Ldm$b;a:Lcom/mojang/brigadier/ParseResults;
intermediary field_9811
Lnet/minecraft/class_2158$class_2160;field_9811:Lcom/mojang/brigadier/ParseResults;
named parsed
Lnet/minecraft/server/function/CommandFunction$CommandElement;parsed:Lcom/mojang/brigadier/ParseResults;
-
-
Constructor Details
-
CommandElement
- Mappings:
Namespace Name Mixin selector official <init>
Ldm$b;<init>(Lcom/mojang/brigadier/ParseResults;)V
intermediary <init>
Lnet/minecraft/class_2158$class_2160;<init>(Lcom/mojang/brigadier/ParseResults;)V
named <init>
Lnet/minecraft/server/function/CommandFunction$CommandElement;<init>(Lcom/mojang/brigadier/ParseResults;)V
-
-
Method Details
-
execute
public void execute(CommandFunctionManager manager, ServerCommandSource source, Deque<CommandFunctionManager.Entry> entries, int maxChainLength, int depth, @Nullable CommandFunctionManager.Tracer tracer) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
execute
in interfaceCommandFunction.Element
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official execute
Ldm$c;execute(Ladr;Ldr;Ljava/util/Deque;IILadr$c;)V
intermediary method_9198
Lnet/minecraft/class_2158$class_2161;method_9198(Lnet/minecraft/class_2991;Lnet/minecraft/class_2168;Ljava/util/Deque;IILnet/minecraft/class_2991$class_6346;)V
named execute
Lnet/minecraft/server/function/CommandFunction$Element;execute(Lnet/minecraft/server/function/CommandFunctionManager;Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Deque;IILnet/minecraft/server/function/CommandFunctionManager$Tracer;)V
-
execute
private int execute(CommandFunctionManager manager, ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Ldm$b;a(Ladr;Ldr;)I
intermediary method_36318
Lnet/minecraft/class_2158$class_2160;method_36318(Lnet/minecraft/class_2991;Lnet/minecraft/class_2168;)I
named execute
Lnet/minecraft/server/function/CommandFunction$CommandElement;execute(Lnet/minecraft/server/function/CommandFunctionManager;Lnet/minecraft/server/command/ServerCommandSource;)I
-
toString
-