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/CommandExecutionContextintermediary net/minecraft/class_8854official hs
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Deque<CommandQueueEntry<T>> private intprivate intprivate final intprivate static final Loggerprivate static final intprivate final intprivate final List<CommandQueueEntry<T>> private final Profilerprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionCommandExecutionContext(int maxCommandChainLength, int maxCommandForkCount, Profiler profiler) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidstatic <T extends AbstractServerCommandSource<T>>
voidenqueueCommand(CommandExecutionContext<T> context, String command, com.mojang.brigadier.context.ContextChain<T> contextChain, T source, ReturnValueConsumer returnValueConsumer) voidenqueueCommand(CommandQueueEntry<T> entry) static <T extends AbstractServerCommandSource<T>>
voidenqueueProcedureCall(CommandExecutionContext<T> context, Procedure<T> procedure, T source, ReturnValueConsumer returnValueConsumer) voidescape(int depth) private static <T extends AbstractServerCommandSource<T>>
Frameframe(CommandExecutionContext<T> context, ReturnValueConsumer returnValueConsumer) getEscapeControl(int depth) intprivate voidprivate voidvoidrun()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_LENGTHLnet/minecraft/command/CommandExecutionContext;MAX_COMMAND_QUEUE_LENGTH:Iintermediary field_46729Lnet/minecraft/class_8854;field_46729:Iofficial aLhs;a:I
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/command/CommandExecutionContext;LOGGER:Lorg/slf4j/Logger;intermediary field_46730Lnet/minecraft/class_8854;field_46730:Lorg/slf4j/Logger;official bLhs;b:Lorg/slf4j/Logger;
-
maxCommandChainLength
private final int maxCommandChainLength- Mappings:
Namespace Name Mixin selector named maxCommandChainLengthLnet/minecraft/command/CommandExecutionContext;maxCommandChainLength:Iintermediary field_46731Lnet/minecraft/class_8854;field_46731:Iofficial cLhs;c:I
-
forkLimit
private final int forkLimit- Mappings:
Namespace Name Mixin selector named forkLimitLnet/minecraft/command/CommandExecutionContext;forkLimit:Iintermediary field_46732Lnet/minecraft/class_8854;field_46732:Iofficial dLhs;d:I
-
profiler
- Mappings:
Namespace Name Mixin selector named profilerLnet/minecraft/command/CommandExecutionContext;profiler:Lnet/minecraft/util/profiler/Profiler;intermediary field_46733Lnet/minecraft/class_8854;field_46733:Lnet/minecraft/class_3695;official eLhs;e:Lbnf;
-
tracer
- Mappings:
Namespace Name Mixin selector named tracerLnet/minecraft/command/CommandExecutionContext;tracer:Lnet/minecraft/server/function/Tracer;intermediary field_46734Lnet/minecraft/class_8854;field_46734:Lnet/minecraft/class_6346;official fLhs;f:Lhv;
-
commandsRemaining
private int commandsRemaining- Mappings:
Namespace Name Mixin selector named commandsRemainingLnet/minecraft/command/CommandExecutionContext;commandsRemaining:Iintermediary field_46735Lnet/minecraft/class_8854;field_46735:Iofficial gLhs;g:I
-
queueOverflowed
private boolean queueOverflowed- Mappings:
Namespace Name Mixin selector named queueOverflowedLnet/minecraft/command/CommandExecutionContext;queueOverflowed:Zintermediary field_46736Lnet/minecraft/class_8854;field_46736:Zofficial hLhs;h:Z
-
commandQueue
- Mappings:
Namespace Name Mixin selector named commandQueueLnet/minecraft/command/CommandExecutionContext;commandQueue:Ljava/util/Deque;intermediary field_46737Lnet/minecraft/class_8854;field_46737:Ljava/util/Deque;official iLhs;i:Ljava/util/Deque;
-
pendingCommands
- Mappings:
Namespace Name Mixin selector named pendingCommandsLnet/minecraft/command/CommandExecutionContext;pendingCommands:Ljava/util/List;intermediary field_46738Lnet/minecraft/class_8854;field_46738:Ljava/util/List;official jLhs;j:Ljava/util/List;
-
currentDepth
private int currentDepth- Mappings:
Namespace Name Mixin selector named currentDepthLnet/minecraft/command/CommandExecutionContext;currentDepth:Iintermediary field_47705Lnet/minecraft/class_8854;field_47705:Iofficial kLhs;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;)Vintermediary <init>Lnet/minecraft/class_8854;<init>(IILnet/minecraft/class_3695;)Vofficial <init>Lhs;<init>(IILbnf;)V
-
-
Method Details
-
frame
private static <T extends AbstractServerCommandSource<T>> Frame frame(CommandExecutionContext<T> context, ReturnValueConsumer returnValueConsumer) - Mappings:
Namespace Name Mixin selector named frameLnet/minecraft/command/CommandExecutionContext;frame(Lnet/minecraft/command/CommandExecutionContext;Lnet/minecraft/command/ReturnValueConsumer;)Lnet/minecraft/command/Frame;intermediary method_54889Lnet/minecraft/class_8854;method_54889(Lnet/minecraft/class_8854;Lnet/minecraft/class_8935;)Lnet/minecraft/class_8937;official aLhs;a(Lhs;Leq;)Lhu;
-
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 enqueueProcedureCallLnet/minecraft/command/CommandExecutionContext;enqueueProcedureCall(Lnet/minecraft/command/CommandExecutionContext;Lnet/minecraft/server/function/Procedure;Lnet/minecraft/server/command/AbstractServerCommandSource;Lnet/minecraft/command/ReturnValueConsumer;)Vintermediary method_54395Lnet/minecraft/class_8854;method_54395(Lnet/minecraft/class_8854;Lnet/minecraft/class_8868;Lnet/minecraft/class_8839;Lnet/minecraft/class_8935;)Vofficial aLhs;a(Lhs;Lii;Lev;Leq;)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 enqueueCommandLnet/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;)Vintermediary method_54393Lnet/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;)Vofficial aLhs;a(Lhs;Ljava/lang/String;Lcom/mojang/brigadier/context/ContextChain;Lev;Leq;)V
-
markQueueOverflowed
private void markQueueOverflowed()- Mappings:
Namespace Name Mixin selector named markQueueOverflowedLnet/minecraft/command/CommandExecutionContext;markQueueOverflowed()Vintermediary method_54400Lnet/minecraft/class_8854;method_54400()Vofficial fLhs;f()V
-
enqueueCommand
- Mappings:
Namespace Name Mixin selector named enqueueCommandLnet/minecraft/command/CommandExecutionContext;enqueueCommand(Lnet/minecraft/command/CommandQueueEntry;)Vintermediary method_54392Lnet/minecraft/class_8854;method_54392(Lnet/minecraft/class_8847;)Vofficial aLhs;a(Lho;)V
-
escape
public void escape(int depth) - Mappings:
Namespace Name Mixin selector named escapeLnet/minecraft/command/CommandExecutionContext;escape(I)Vintermediary method_54391Lnet/minecraft/class_8854;method_54391(I)Vofficial aLhs;a(I)V
-
getEscapeControl
- Mappings:
Namespace Name Mixin selector named getEscapeControlLnet/minecraft/command/CommandExecutionContext;getEscapeControl(I)Lnet/minecraft/command/Frame$Control;intermediary method_54890Lnet/minecraft/class_8854;method_54890(I)Lnet/minecraft/class_8937$class_8938;official bLhs;b(I)Lhu$a;
-
run
public void run()- Mappings:
Namespace Name Mixin selector named runLnet/minecraft/command/CommandExecutionContext;run()Vintermediary method_54390Lnet/minecraft/class_8854;method_54390()Vofficial aLhs;a()V
-
queuePendingCommands
private void queuePendingCommands()- Mappings:
Namespace Name Mixin selector named queuePendingCommandsLnet/minecraft/command/CommandExecutionContext;queuePendingCommands()Vintermediary method_55594Lnet/minecraft/class_8854;method_55594()Vofficial gLhs;g()V
-
setTracer
- Mappings:
Namespace Name Mixin selector named setTracerLnet/minecraft/command/CommandExecutionContext;setTracer(Lnet/minecraft/server/function/Tracer;)Vintermediary method_54394Lnet/minecraft/class_8854;method_54394(Lnet/minecraft/class_6346;)Vofficial aLhs;a(Lhv;)V
-
getTracer
- Mappings:
Namespace Name Mixin selector named getTracerLnet/minecraft/command/CommandExecutionContext;getTracer()Lnet/minecraft/server/function/Tracer;intermediary method_54396Lnet/minecraft/class_8854;method_54396()Lnet/minecraft/class_6346;official bLhs;b()Lhv;
-
getProfiler
- Mappings:
Namespace Name Mixin selector named getProfilerLnet/minecraft/command/CommandExecutionContext;getProfiler()Lnet/minecraft/util/profiler/Profiler;intermediary method_54397Lnet/minecraft/class_8854;method_54397()Lnet/minecraft/class_3695;official cLhs;c()Lbnf;
-
getForkLimit
public int getForkLimit()- Mappings:
Namespace Name Mixin selector named getForkLimitLnet/minecraft/command/CommandExecutionContext;getForkLimit()Iintermediary method_54398Lnet/minecraft/class_8854;method_54398()Iofficial dLhs;d()I
-
decrementCommandQuota
public void decrementCommandQuota()- Mappings:
Namespace Name Mixin selector named decrementCommandQuotaLnet/minecraft/command/CommandExecutionContext;decrementCommandQuota()Vintermediary method_54399Lnet/minecraft/class_8854;method_54399()Vofficial eLhs;e()V
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-