Package net.minecraft.command
Class CommandExecutionContext<T>
java.lang.Object
net.minecraft.command.CommandExecutionContext<T>
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name named net/minecraft/command/CommandExecutionContext
intermediary net/minecraft/class_8854
official hp
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Deque
<CommandQueueEntry<T>> private int
private int
private final int
private static final Logger
private static final int
private final int
private final List
<CommandQueueEntry<T>> private final Profiler
private boolean
-
Constructor Summary
ConstructorDescriptionCommandExecutionContext
(int maxCommandChainLength, int maxCommandForkCount, Profiler profiler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
static <T extends AbstractServerCommandSource<T>>
voidenqueueCommand
(CommandExecutionContext<T> context, String command, com.mojang.brigadier.context.ContextChain<T> contextChain, T source, ReturnValueConsumer returnValueConsumer) void
enqueueCommand
(CommandQueueEntry<T> entry) static <T extends AbstractServerCommandSource<T>>
voidenqueueProcedureCall
(CommandExecutionContext<T> context, Procedure<T> procedure, T source, ReturnValueConsumer returnValueConsumer) void
escape
(int depth) private static <T extends AbstractServerCommandSource<T>>
Frameframe
(CommandExecutionContext<T> context, ReturnValueConsumer returnValueConsumer) getEscapeControl
(int depth) int
private void
private void
void
run()
void
-
Field Details
-
MAX_COMMAND_QUEUE_LENGTH
private static final int MAX_COMMAND_QUEUE_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_COMMAND_QUEUE_LENGTH
Lnet/minecraft/command/CommandExecutionContext;MAX_COMMAND_QUEUE_LENGTH:I
intermediary field_46729
Lnet/minecraft/class_8854;field_46729:I
official a
Lhp;a:I
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/command/CommandExecutionContext;LOGGER:Lorg/slf4j/Logger;
intermediary field_46730
Lnet/minecraft/class_8854;field_46730:Lorg/slf4j/Logger;
official b
Lhp;b:Lorg/slf4j/Logger;
-
maxCommandChainLength
private final int maxCommandChainLength- Mappings:
Namespace Name Mixin selector named maxCommandChainLength
Lnet/minecraft/command/CommandExecutionContext;maxCommandChainLength:I
intermediary field_46731
Lnet/minecraft/class_8854;field_46731:I
official c
Lhp;c:I
-
forkLimit
private final int forkLimit- Mappings:
Namespace Name Mixin selector named forkLimit
Lnet/minecraft/command/CommandExecutionContext;forkLimit:I
intermediary field_46732
Lnet/minecraft/class_8854;field_46732:I
official d
Lhp;d:I
-
profiler
- Mappings:
Namespace Name Mixin selector named profiler
Lnet/minecraft/command/CommandExecutionContext;profiler:Lnet/minecraft/util/profiler/Profiler;
intermediary field_46733
Lnet/minecraft/class_8854;field_46733:Lnet/minecraft/class_3695;
official e
Lhp;e:Lbmv;
-
tracer
- Mappings:
Namespace Name Mixin selector named tracer
Lnet/minecraft/command/CommandExecutionContext;tracer:Lnet/minecraft/server/function/Tracer;
intermediary field_46734
Lnet/minecraft/class_8854;field_46734:Lnet/minecraft/class_6346;
official f
Lhp;f:Lhs;
-
commandsRemaining
private int commandsRemaining- Mappings:
Namespace Name Mixin selector named commandsRemaining
Lnet/minecraft/command/CommandExecutionContext;commandsRemaining:I
intermediary field_46735
Lnet/minecraft/class_8854;field_46735:I
official g
Lhp;g:I
-
queueOverflowed
private boolean queueOverflowed- Mappings:
Namespace Name Mixin selector named queueOverflowed
Lnet/minecraft/command/CommandExecutionContext;queueOverflowed:Z
intermediary field_46736
Lnet/minecraft/class_8854;field_46736:Z
official h
Lhp;h:Z
-
commandQueue
- Mappings:
Namespace Name Mixin selector named commandQueue
Lnet/minecraft/command/CommandExecutionContext;commandQueue:Ljava/util/Deque;
intermediary field_46737
Lnet/minecraft/class_8854;field_46737:Ljava/util/Deque;
official i
Lhp;i:Ljava/util/Deque;
-
pendingCommands
- Mappings:
Namespace Name Mixin selector named pendingCommands
Lnet/minecraft/command/CommandExecutionContext;pendingCommands:Ljava/util/List;
intermediary field_46738
Lnet/minecraft/class_8854;field_46738:Ljava/util/List;
official j
Lhp;j:Ljava/util/List;
-
currentDepth
private int currentDepth- Mappings:
Namespace Name Mixin selector named currentDepth
Lnet/minecraft/command/CommandExecutionContext;currentDepth:I
intermediary field_47705
Lnet/minecraft/class_8854;field_47705:I
official k
Lhp;k:I
-
-
Constructor Details
-
CommandExecutionContext
public CommandExecutionContext(int maxCommandChainLength, int maxCommandForkCount, Profiler profiler) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/command/CommandExecutionContext;<init>(IILnet/minecraft/util/profiler/Profiler;)V
intermediary <init>
Lnet/minecraft/class_8854;<init>(IILnet/minecraft/class_3695;)V
official <init>
Lhp;<init>(IILbmv;)V
-
-
Method Details
-
frame
private static <T extends AbstractServerCommandSource<T>> Frame frame(CommandExecutionContext<T> context, ReturnValueConsumer returnValueConsumer) - Mappings:
Namespace Name Mixin selector named frame
Lnet/minecraft/command/CommandExecutionContext;frame(Lnet/minecraft/command/CommandExecutionContext;Lnet/minecraft/command/ReturnValueConsumer;)Lnet/minecraft/command/Frame;
intermediary method_54889
Lnet/minecraft/class_8854;method_54889(Lnet/minecraft/class_8854;Lnet/minecraft/class_8935;)Lnet/minecraft/class_8937;
official a
Lhp;a(Lhp;Len;)Lhr;
-
enqueueProcedureCall
public static <T extends AbstractServerCommandSource<T>> void enqueueProcedureCall(CommandExecutionContext<T> context, Procedure<T> procedure, T source, ReturnValueConsumer returnValueConsumer) - Mappings:
Namespace Name Mixin selector named enqueueProcedureCall
Lnet/minecraft/command/CommandExecutionContext;enqueueProcedureCall(Lnet/minecraft/command/CommandExecutionContext;Lnet/minecraft/server/function/Procedure;Lnet/minecraft/server/command/AbstractServerCommandSource;Lnet/minecraft/command/ReturnValueConsumer;)V
intermediary method_54395
Lnet/minecraft/class_8854;method_54395(Lnet/minecraft/class_8854;Lnet/minecraft/class_8868;Lnet/minecraft/class_8839;Lnet/minecraft/class_8935;)V
official a
Lhp;a(Lhp;Lie;Les;Len;)V
-
enqueueCommand
public static <T extends AbstractServerCommandSource<T>> void enqueueCommand(CommandExecutionContext<T> context, String command, com.mojang.brigadier.context.ContextChain<T> contextChain, T source, ReturnValueConsumer returnValueConsumer) - Mappings:
Namespace Name Mixin selector named enqueueCommand
Lnet/minecraft/command/CommandExecutionContext;enqueueCommand(Lnet/minecraft/command/CommandExecutionContext;Ljava/lang/String;Lcom/mojang/brigadier/context/ContextChain;Lnet/minecraft/server/command/AbstractServerCommandSource;Lnet/minecraft/command/ReturnValueConsumer;)V
intermediary method_54393
Lnet/minecraft/class_8854;method_54393(Lnet/minecraft/class_8854;Ljava/lang/String;Lcom/mojang/brigadier/context/ContextChain;Lnet/minecraft/class_8839;Lnet/minecraft/class_8935;)V
official a
Lhp;a(Lhp;Ljava/lang/String;Lcom/mojang/brigadier/context/ContextChain;Les;Len;)V
-
markQueueOverflowed
private void markQueueOverflowed()- Mappings:
Namespace Name Mixin selector named markQueueOverflowed
Lnet/minecraft/command/CommandExecutionContext;markQueueOverflowed()V
intermediary method_54400
Lnet/minecraft/class_8854;method_54400()V
official f
Lhp;f()V
-
enqueueCommand
- Mappings:
Namespace Name Mixin selector named enqueueCommand
Lnet/minecraft/command/CommandExecutionContext;enqueueCommand(Lnet/minecraft/command/CommandQueueEntry;)V
intermediary method_54392
Lnet/minecraft/class_8854;method_54392(Lnet/minecraft/class_8847;)V
official a
Lhp;a(Lhl;)V
-
escape
public void escape(int depth) - Mappings:
Namespace Name Mixin selector named escape
Lnet/minecraft/command/CommandExecutionContext;escape(I)V
intermediary method_54391
Lnet/minecraft/class_8854;method_54391(I)V
official a
Lhp;a(I)V
-
getEscapeControl
- Mappings:
Namespace Name Mixin selector named getEscapeControl
Lnet/minecraft/command/CommandExecutionContext;getEscapeControl(I)Lnet/minecraft/command/Frame$Control;
intermediary method_54890
Lnet/minecraft/class_8854;method_54890(I)Lnet/minecraft/class_8937$class_8938;
official b
Lhp;b(I)Lhr$a;
-
run
public void run()- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/command/CommandExecutionContext;run()V
intermediary method_54390
Lnet/minecraft/class_8854;method_54390()V
official a
Lhp;a()V
-
queuePendingCommands
private void queuePendingCommands()- Mappings:
Namespace Name Mixin selector named queuePendingCommands
Lnet/minecraft/command/CommandExecutionContext;queuePendingCommands()V
intermediary method_55594
Lnet/minecraft/class_8854;method_55594()V
official g
Lhp;g()V
-
setTracer
- Mappings:
Namespace Name Mixin selector named setTracer
Lnet/minecraft/command/CommandExecutionContext;setTracer(Lnet/minecraft/server/function/Tracer;)V
intermediary method_54394
Lnet/minecraft/class_8854;method_54394(Lnet/minecraft/class_6346;)V
official a
Lhp;a(Lhs;)V
-
getTracer
- Mappings:
Namespace Name Mixin selector named getTracer
Lnet/minecraft/command/CommandExecutionContext;getTracer()Lnet/minecraft/server/function/Tracer;
intermediary method_54396
Lnet/minecraft/class_8854;method_54396()Lnet/minecraft/class_6346;
official b
Lhp;b()Lhs;
-
getProfiler
- Mappings:
Namespace Name Mixin selector named getProfiler
Lnet/minecraft/command/CommandExecutionContext;getProfiler()Lnet/minecraft/util/profiler/Profiler;
intermediary method_54397
Lnet/minecraft/class_8854;method_54397()Lnet/minecraft/class_3695;
official c
Lhp;c()Lbmv;
-
getForkLimit
public int getForkLimit()- Mappings:
Namespace Name Mixin selector named getForkLimit
Lnet/minecraft/command/CommandExecutionContext;getForkLimit()I
intermediary method_54398
Lnet/minecraft/class_8854;method_54398()I
official d
Lhp;d()I
-
decrementCommandQuota
public void decrementCommandQuota()- Mappings:
Namespace Name Mixin selector named decrementCommandQuota
Lnet/minecraft/command/CommandExecutionContext;decrementCommandQuota()V
intermediary method_54399
Lnet/minecraft/class_8854;method_54399()V
official e
Lhp;e()V
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-