Package net.minecraft.command
Class CommandExecutionContext<T>
java.lang.Object
net.minecraft.command.CommandExecutionContext<T>
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name official gnintermediary net/minecraft/class_8854named net/minecraft/command/CommandExecutionContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Deque<CommandQueueEntry<T>>private 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) voidenqueueCommand(CommandQueueEntry<T> entry) voidenqueueProcedureCall(Procedure<T> procedure, T source) voidescape(int depth) intprivate voidvoidrun()void
-
Field Details
-
MAX_COMMAND_QUEUE_LENGTH
private static final int MAX_COMMAND_QUEUE_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector official aLgn;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 bLgn;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 cLgn;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 dLgn;d:Iintermediary field_46732Lnet/minecraft/class_8854;field_46732:Inamed forkLimitLnet/minecraft/command/CommandExecutionContext;forkLimit:I
-
profiler
- Mappings:
Namespace Name Mixin selector official eLgn;e:Lbfh;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 fLgn;f:Lgp;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 gLgn;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 hLgn;h:Zintermediary field_46736Lnet/minecraft/class_8854;field_46736:Znamed queueOverflowedLnet/minecraft/command/CommandExecutionContext;queueOverflowed:Z
-
commandQueue
- Mappings:
Namespace Name Mixin selector official iLgn;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 jLgn;j:Ljava/util/List;intermediary field_46738Lnet/minecraft/class_8854;field_46738:Ljava/util/List;named pendingCommandsLnet/minecraft/command/CommandExecutionContext;pendingCommands:Ljava/util/List;
-
-
Constructor Details
-
CommandExecutionContext
public CommandExecutionContext(int maxCommandChainLength, int maxCommandForkCount, Profiler profiler) - Mappings:
Namespace Name Mixin selector official <init>Lgn;<init>(IILbfh;)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
-
enqueueProcedureCall
- Mappings:
Namespace Name Mixin selector official aLgn;a(Lgz;Ljava/lang/Object;)Vintermediary method_54395Lnet/minecraft/class_8854;method_54395(Lnet/minecraft/class_8868;Ljava/lang/Object;)Vnamed enqueueProcedureCallLnet/minecraft/command/CommandExecutionContext;enqueueProcedureCall(Lnet/minecraft/server/function/Procedure;Ljava/lang/Object;)V
-
enqueueCommand
public static <T extends AbstractServerCommandSource<T>> void enqueueCommand(CommandExecutionContext<T> context, String command, com.mojang.brigadier.context.ContextChain<T> contextChain, T source) - Mappings:
Namespace Name Mixin selector official aLgn;a(Lgn;Ljava/lang/String;Lcom/mojang/brigadier/context/ContextChain;Ldw;)Vintermediary method_54393Lnet/minecraft/class_8854;method_54393(Lnet/minecraft/class_8854;Ljava/lang/String;Lcom/mojang/brigadier/context/ContextChain;Lnet/minecraft/class_8839;)Vnamed enqueueCommandLnet/minecraft/command/CommandExecutionContext;enqueueCommand(Lnet/minecraft/command/CommandExecutionContext;Ljava/lang/String;Lcom/mojang/brigadier/context/ContextChain;Lnet/minecraft/server/command/AbstractServerCommandSource;)V
-
markQueueOverflowed
private void markQueueOverflowed()- Mappings:
Namespace Name Mixin selector official fLgn;f()Vintermediary method_54400Lnet/minecraft/class_8854;method_54400()Vnamed markQueueOverflowedLnet/minecraft/command/CommandExecutionContext;markQueueOverflowed()V
-
enqueueCommand
- Mappings:
Namespace Name Mixin selector official aLgn;a(Lgj;)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 aLgn;a(I)Vintermediary method_54391Lnet/minecraft/class_8854;method_54391(I)Vnamed escapeLnet/minecraft/command/CommandExecutionContext;escape(I)V
-
run
public void run()- Mappings:
Namespace Name Mixin selector official aLgn;a()Vintermediary method_54390Lnet/minecraft/class_8854;method_54390()Vnamed runLnet/minecraft/command/CommandExecutionContext;run()V
-
setTracer
- Mappings:
Namespace Name Mixin selector official aLgn;a(Lgp;)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 bLgn;b()Lgp;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 cLgn;c()Lbfh;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 dLgn;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 eLgn;e()Vintermediary method_54399Lnet/minecraft/class_8854;method_54399()Vnamed decrementCommandQuotaLnet/minecraft/command/CommandExecutionContext;decrementCommandQuota()V
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-