Package net.minecraft.command
Class CommandExecutionContext<T>
java.lang.Object
net.minecraft.command.CommandExecutionContext<T>
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name official gointermediary net/minecraft/class_8854named net/minecraft/command/CommandExecutionContext
-
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 official aLgo;a:Iintermediary field_46729Lnet/minecraft/class_8854;field_46729:Inamed MAX_COMMAND_QUEUE_LENGTHLnet/minecraft/command/CommandExecutionContext;MAX_COMMAND_QUEUE_LENGTH:I
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLgo;b:Lorg/slf4j/Logger;intermediary field_46730Lnet/minecraft/class_8854;field_46730:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/command/CommandExecutionContext;LOGGER:Lorg/slf4j/Logger;
-
maxCommandChainLength
private final int maxCommandChainLength- Mappings:
Namespace Name Mixin selector official cLgo;c:Iintermediary field_46731Lnet/minecraft/class_8854;field_46731:Inamed maxCommandChainLengthLnet/minecraft/command/CommandExecutionContext;maxCommandChainLength:I
-
forkLimit
private final int forkLimit- Mappings:
Namespace Name Mixin selector official dLgo;d:Iintermediary field_46732Lnet/minecraft/class_8854;field_46732:Inamed forkLimitLnet/minecraft/command/CommandExecutionContext;forkLimit:I
-
profiler
- Mappings:
Namespace Name Mixin selector official eLgo;e:Lbgs;intermediary field_46733Lnet/minecraft/class_8854;field_46733:Lnet/minecraft/class_3695;named profilerLnet/minecraft/command/CommandExecutionContext;profiler:Lnet/minecraft/util/profiler/Profiler;
-
tracer
- Mappings:
Namespace Name Mixin selector official fLgo;f:Lgr;intermediary field_46734Lnet/minecraft/class_8854;field_46734:Lnet/minecraft/class_6346;named tracerLnet/minecraft/command/CommandExecutionContext;tracer:Lnet/minecraft/server/function/Tracer;
-
commandsRemaining
private int commandsRemaining- Mappings:
Namespace Name Mixin selector official gLgo;g:Iintermediary field_46735Lnet/minecraft/class_8854;field_46735:Inamed commandsRemainingLnet/minecraft/command/CommandExecutionContext;commandsRemaining:I
-
queueOverflowed
private boolean queueOverflowed- Mappings:
Namespace Name Mixin selector official hLgo;h:Zintermediary field_46736Lnet/minecraft/class_8854;field_46736:Znamed queueOverflowedLnet/minecraft/command/CommandExecutionContext;queueOverflowed:Z
-
commandQueue
- Mappings:
Namespace Name Mixin selector official iLgo;i:Ljava/util/Deque;intermediary field_46737Lnet/minecraft/class_8854;field_46737:Ljava/util/Deque;named commandQueueLnet/minecraft/command/CommandExecutionContext;commandQueue:Ljava/util/Deque;
-
pendingCommands
- Mappings:
Namespace Name Mixin selector official jLgo;j:Ljava/util/List;intermediary field_46738Lnet/minecraft/class_8854;field_46738:Ljava/util/List;named pendingCommandsLnet/minecraft/command/CommandExecutionContext;pendingCommands:Ljava/util/List;
-
currentDepth
private int currentDepth- Mappings:
Namespace Name Mixin selector official kLgo;k:Iintermediary field_47705Lnet/minecraft/class_8854;field_47705:Inamed currentDepthLnet/minecraft/command/CommandExecutionContext;currentDepth:I
-
-
Constructor Details
-
CommandExecutionContext
public CommandExecutionContext(int maxCommandChainLength, int maxCommandForkCount, Profiler profiler) - Mappings:
Namespace Name Mixin selector official <init>Lgo;<init>(IILbgs;)Vintermediary <init>Lnet/minecraft/class_8854;<init>(IILnet/minecraft/class_3695;)Vnamed <init>Lnet/minecraft/command/CommandExecutionContext;<init>(IILnet/minecraft/util/profiler/Profiler;)V
-
-
Method Details
-
frame
private static <T extends AbstractServerCommandSource<T>> Frame frame(CommandExecutionContext<T> context, ReturnValueConsumer returnValueConsumer) - Mappings:
Namespace Name Mixin selector official aLgo;a(Lgo;Ldp;)Lgq;intermediary method_54889Lnet/minecraft/class_8854;method_54889(Lnet/minecraft/class_8854;Lnet/minecraft/class_8935;)Lnet/minecraft/class_8937;named frameLnet/minecraft/command/CommandExecutionContext;frame(Lnet/minecraft/command/CommandExecutionContext;Lnet/minecraft/command/ReturnValueConsumer;)Lnet/minecraft/command/Frame;
-
enqueueProcedureCall
public static <T extends AbstractServerCommandSource<T>> void enqueueProcedureCall(CommandExecutionContext<T> context, Procedure<T> procedure, T source, ReturnValueConsumer returnValueConsumer) - Mappings:
Namespace Name Mixin selector official aLgo;a(Lgo;Lhd;Ldu;Ldp;)Vintermediary method_54395Lnet/minecraft/class_8854;method_54395(Lnet/minecraft/class_8854;Lnet/minecraft/class_8868;Lnet/minecraft/class_8839;Lnet/minecraft/class_8935;)Vnamed enqueueProcedureCallLnet/minecraft/command/CommandExecutionContext;enqueueProcedureCall(Lnet/minecraft/command/CommandExecutionContext;Lnet/minecraft/server/function/Procedure;Lnet/minecraft/server/command/AbstractServerCommandSource;Lnet/minecraft/command/ReturnValueConsumer;)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 official aLgo;a(Lgo;Ljava/lang/String;Lcom/mojang/brigadier/context/ContextChain;Ldu;Ldp;)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;)Vnamed 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;)V
-
markQueueOverflowed
private void markQueueOverflowed()- Mappings:
Namespace Name Mixin selector official fLgo;f()Vintermediary method_54400Lnet/minecraft/class_8854;method_54400()Vnamed markQueueOverflowedLnet/minecraft/command/CommandExecutionContext;markQueueOverflowed()V
-
enqueueCommand
- Mappings:
Namespace Name Mixin selector official aLgo;a(Lgk;)Vintermediary method_54392Lnet/minecraft/class_8854;method_54392(Lnet/minecraft/class_8847;)Vnamed enqueueCommandLnet/minecraft/command/CommandExecutionContext;enqueueCommand(Lnet/minecraft/command/CommandQueueEntry;)V
-
escape
public void escape(int depth) - Mappings:
Namespace Name Mixin selector official aLgo;a(I)Vintermediary method_54391Lnet/minecraft/class_8854;method_54391(I)Vnamed escapeLnet/minecraft/command/CommandExecutionContext;escape(I)V
-
getEscapeControl
- Mappings:
Namespace Name Mixin selector official bLgo;b(I)Lgq$a;intermediary method_54890Lnet/minecraft/class_8854;method_54890(I)Lnet/minecraft/class_8937$class_8938;named getEscapeControlLnet/minecraft/command/CommandExecutionContext;getEscapeControl(I)Lnet/minecraft/command/Frame$Control;
-
run
public void run()- Mappings:
Namespace Name Mixin selector official aLgo;a()Vintermediary method_54390Lnet/minecraft/class_8854;method_54390()Vnamed runLnet/minecraft/command/CommandExecutionContext;run()V
-
queuePendingCommands
private void queuePendingCommands()- Mappings:
Namespace Name Mixin selector official gLgo;g()Vintermediary method_55594Lnet/minecraft/class_8854;method_55594()Vnamed queuePendingCommandsLnet/minecraft/command/CommandExecutionContext;queuePendingCommands()V
-
setTracer
- Mappings:
Namespace Name Mixin selector official aLgo;a(Lgr;)Vintermediary method_54394Lnet/minecraft/class_8854;method_54394(Lnet/minecraft/class_6346;)Vnamed setTracerLnet/minecraft/command/CommandExecutionContext;setTracer(Lnet/minecraft/server/function/Tracer;)V
-
getTracer
- Mappings:
Namespace Name Mixin selector official bLgo;b()Lgr;intermediary method_54396Lnet/minecraft/class_8854;method_54396()Lnet/minecraft/class_6346;named getTracerLnet/minecraft/command/CommandExecutionContext;getTracer()Lnet/minecraft/server/function/Tracer;
-
getProfiler
- Mappings:
Namespace Name Mixin selector official cLgo;c()Lbgs;intermediary method_54397Lnet/minecraft/class_8854;method_54397()Lnet/minecraft/class_3695;named getProfilerLnet/minecraft/command/CommandExecutionContext;getProfiler()Lnet/minecraft/util/profiler/Profiler;
-
getForkLimit
public int getForkLimit()- Mappings:
Namespace Name Mixin selector official dLgo;d()Iintermediary method_54398Lnet/minecraft/class_8854;method_54398()Inamed getForkLimitLnet/minecraft/command/CommandExecutionContext;getForkLimit()I
-
decrementCommandQuota
public void decrementCommandQuota()- Mappings:
Namespace Name Mixin selector official eLgo;e()Vintermediary method_54399Lnet/minecraft/class_8854;method_54399()Vnamed decrementCommandQuotaLnet/minecraft/command/CommandExecutionContext;decrementCommandQuota()V
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-