Package net.minecraft.server.function
Class CommandFunctionManager.Execution
java.lang.Object
net.minecraft.server.function.CommandFunctionManager.Execution
- Enclosing class:
CommandFunctionManager
An active execution of functions. It uses two deques to simulate a stack for a
depth-first expansion of functions, as the function call stack depth may exceed
the allowed JVM stack size.
- See Also:
- Mappings:
Namespace Name official ade$aintermediary net/minecraft/class_2991$class_6345named net/minecraft/server/function/CommandFunctionManager$Execution
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final Deque<CommandFunctionManager.Entry>(package private) booleanprivate final @Nullable CommandFunctionManager.Tracerprivate final List<CommandFunctionManager.Entry> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ServerCommandSourceaddReturnConsumer(ServerCommandSource source) (package private) voidrecursiveRun(CommandFunction function, ServerCommandSource source) Handles a recursive case inCommandFunctionManager.execute(CommandFunction, ServerCommandSource, CommandFunctionManager.Tracer).voidreportError(String message) (package private) intrun(CommandFunction function, ServerCommandSource source)
-
Field Details
-
depth
private int depth- Mappings:
Namespace Name Mixin selector official bLade$a;b:Iintermediary field_33545Lnet/minecraft/class_2991$class_6345;field_33545:Inamed depthLnet/minecraft/server/function/CommandFunctionManager$Execution;depth:I
-
tracer
- Mappings:
Namespace Name Mixin selector official cLade$a;c:Lade$c;intermediary field_33546Lnet/minecraft/class_2991$class_6345;field_33546:Lnet/minecraft/class_2991$class_6346;named tracerLnet/minecraft/server/function/CommandFunctionManager$Execution;tracer:Lnet/minecraft/server/function/CommandFunctionManager$Tracer;
-
queue
- Mappings:
Namespace Name Mixin selector official dLade$a;d:Ljava/util/Deque;intermediary field_33547Lnet/minecraft/class_2991$class_6345;field_33547:Ljava/util/Deque;named queueLnet/minecraft/server/function/CommandFunctionManager$Execution;queue:Ljava/util/Deque;
-
waitlist
- Mappings:
Namespace Name Mixin selector official eLade$a;e:Ljava/util/List;intermediary field_33548Lnet/minecraft/class_2991$class_6345;field_33548:Ljava/util/List;named waitlistLnet/minecraft/server/function/CommandFunctionManager$Execution;waitlist:Ljava/util/List;
-
returned
boolean returned- Mappings:
Namespace Name Mixin selector official fLade$a;f:Zintermediary field_44584Lnet/minecraft/class_2991$class_6345;field_44584:Znamed returnedLnet/minecraft/server/function/CommandFunctionManager$Execution;returned:Z
-
-
Constructor Details
-
Execution
Execution(@Nullable @Nullable CommandFunctionManager.Tracer tracer) - Mappings:
Namespace Name Mixin selector official <init>Lade$a;<init>(Lade;Lade$c;)Vintermediary <init>Lnet/minecraft/class_2991$class_6345;<init>(Lnet/minecraft/class_2991;Lnet/minecraft/class_2991$class_6346;)Vnamed <init>Lnet/minecraft/server/function/CommandFunctionManager$Execution;<init>(Lnet/minecraft/server/function/CommandFunctionManager;Lnet/minecraft/server/function/CommandFunctionManager$Tracer;)V
-
-
Method Details
-
recursiveRun
Handles a recursive case inCommandFunctionManager.execute(CommandFunction, ServerCommandSource, CommandFunctionManager.Tracer).This effectively swaps an entry with a command element with
/functioncommand at the head of the deque with another entry with a function element containing the actual command elements referenced in that function.- Parameters:
function- the functionsource- the command source- Mappings:
Namespace Name Mixin selector official aLade$a;a(Ldn;Lds;)Vintermediary method_36343Lnet/minecraft/class_2991$class_6345;method_36343(Lnet/minecraft/class_2158;Lnet/minecraft/class_2168;)Vnamed recursiveRunLnet/minecraft/server/function/CommandFunctionManager$Execution;recursiveRun(Lnet/minecraft/server/function/CommandFunction;Lnet/minecraft/server/command/ServerCommandSource;)V
-
addReturnConsumer
- Mappings:
Namespace Name Mixin selector official aLade$a;a(Lds;)Lds;intermediary method_51275Lnet/minecraft/class_2991$class_6345;method_51275(Lnet/minecraft/class_2168;)Lnet/minecraft/class_2168;named addReturnConsumerLnet/minecraft/server/function/CommandFunctionManager$Execution;addReturnConsumer(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/server/command/ServerCommandSource;
-
run
Handles a new case inCommandFunctionManager.execute(CommandFunction, ServerCommandSource, CommandFunctionManager.Tracer).- Parameters:
function- the functionsource- the command source- Returns:
- a value for the command result
- Mappings:
Namespace Name Mixin selector official bLade$a;b(Ldn;Lds;)Iintermediary method_36346Lnet/minecraft/class_2991$class_6345;method_36346(Lnet/minecraft/class_2158;Lnet/minecraft/class_2168;)Inamed runLnet/minecraft/server/function/CommandFunctionManager$Execution;run(Lnet/minecraft/server/function/CommandFunction;Lnet/minecraft/server/command/ServerCommandSource;)I
-
reportError
- Mappings:
Namespace Name Mixin selector official aLade$a;a(Ljava/lang/String;)Vintermediary method_36344Lnet/minecraft/class_2991$class_6345;method_36344(Ljava/lang/String;)Vnamed reportErrorLnet/minecraft/server/function/CommandFunctionManager$Execution;reportError(Ljava/lang/String;)V
-