Class CommandExecutionContext<T>

java.lang.Object
net.minecraft.command.CommandExecutionContext<T>
All Implemented Interfaces:
AutoCloseable

public class CommandExecutionContext<T> extends Object implements AutoCloseable
Mappings:
Namespace Name
official go
intermediary net/minecraft/class_8854
named net/minecraft/command/CommandExecutionContext
  • Field Details

    • MAX_COMMAND_QUEUE_LENGTH

      private static final int MAX_COMMAND_QUEUE_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lgo;a:I
      intermediary field_46729 Lnet/minecraft/class_8854;field_46729:I
      named MAX_COMMAND_QUEUE_LENGTH Lnet/minecraft/command/CommandExecutionContext;MAX_COMMAND_QUEUE_LENGTH:I
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lgo;b:Lorg/slf4j/Logger;
      intermediary field_46730 Lnet/minecraft/class_8854;field_46730:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/command/CommandExecutionContext;LOGGER:Lorg/slf4j/Logger;
    • maxCommandChainLength

      private final int maxCommandChainLength
      Mappings:
      Namespace Name Mixin selector
      official c Lgo;c:I
      intermediary field_46731 Lnet/minecraft/class_8854;field_46731:I
      named maxCommandChainLength Lnet/minecraft/command/CommandExecutionContext;maxCommandChainLength:I
    • forkLimit

      private final int forkLimit
      Mappings:
      Namespace Name Mixin selector
      official d Lgo;d:I
      intermediary field_46732 Lnet/minecraft/class_8854;field_46732:I
      named forkLimit Lnet/minecraft/command/CommandExecutionContext;forkLimit:I
    • profiler

      private final Profiler profiler
      Mappings:
      Namespace Name Mixin selector
      official e Lgo;e:Lbgs;
      intermediary field_46733 Lnet/minecraft/class_8854;field_46733:Lnet/minecraft/class_3695;
      named profiler Lnet/minecraft/command/CommandExecutionContext;profiler:Lnet/minecraft/util/profiler/Profiler;
    • tracer

      @Nullable private @Nullable Tracer tracer
      Mappings:
      Namespace Name Mixin selector
      official f Lgo;f:Lgr;
      intermediary field_46734 Lnet/minecraft/class_8854;field_46734:Lnet/minecraft/class_6346;
      named tracer Lnet/minecraft/command/CommandExecutionContext;tracer:Lnet/minecraft/server/function/Tracer;
    • commandsRemaining

      private int commandsRemaining
      Mappings:
      Namespace Name Mixin selector
      official g Lgo;g:I
      intermediary field_46735 Lnet/minecraft/class_8854;field_46735:I
      named commandsRemaining Lnet/minecraft/command/CommandExecutionContext;commandsRemaining:I
    • queueOverflowed

      private boolean queueOverflowed
      Mappings:
      Namespace Name Mixin selector
      official h Lgo;h:Z
      intermediary field_46736 Lnet/minecraft/class_8854;field_46736:Z
      named queueOverflowed Lnet/minecraft/command/CommandExecutionContext;queueOverflowed:Z
    • commandQueue

      private final Deque<CommandQueueEntry<T>> commandQueue
      Mappings:
      Namespace Name Mixin selector
      official i Lgo;i:Ljava/util/Deque;
      intermediary field_46737 Lnet/minecraft/class_8854;field_46737:Ljava/util/Deque;
      named commandQueue Lnet/minecraft/command/CommandExecutionContext;commandQueue:Ljava/util/Deque;
    • pendingCommands

      private final List<CommandQueueEntry<T>> pendingCommands
      Mappings:
      Namespace Name Mixin selector
      official j Lgo;j:Ljava/util/List;
      intermediary field_46738 Lnet/minecraft/class_8854;field_46738:Ljava/util/List;
      named pendingCommands Lnet/minecraft/command/CommandExecutionContext;pendingCommands:Ljava/util/List;
    • currentDepth

      private int currentDepth
      Mappings:
      Namespace Name Mixin selector
      official k Lgo;k:I
      intermediary field_47705 Lnet/minecraft/class_8854;field_47705:I
      named currentDepth Lnet/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;)V
      intermediary <init> Lnet/minecraft/class_8854;<init>(IILnet/minecraft/class_3695;)V
      named <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 a Lgo;a(Lgo;Ldp;)Lgq;
      intermediary method_54889 Lnet/minecraft/class_8854;method_54889(Lnet/minecraft/class_8854;Lnet/minecraft/class_8935;)Lnet/minecraft/class_8937;
      named frame Lnet/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 a Lgo;a(Lgo;Lhd;Ldu;Ldp;)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
      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
    • 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 a Lgo;a(Lgo;Ljava/lang/String;Lcom/mojang/brigadier/context/ContextChain;Ldu;Ldp;)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
      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
    • markQueueOverflowed

      private void markQueueOverflowed()
      Mappings:
      Namespace Name Mixin selector
      official f Lgo;f()V
      intermediary method_54400 Lnet/minecraft/class_8854;method_54400()V
      named markQueueOverflowed Lnet/minecraft/command/CommandExecutionContext;markQueueOverflowed()V
    • enqueueCommand

      public void enqueueCommand(CommandQueueEntry<T> entry)
      Mappings:
      Namespace Name Mixin selector
      official a Lgo;a(Lgk;)V
      intermediary method_54392 Lnet/minecraft/class_8854;method_54392(Lnet/minecraft/class_8847;)V
      named enqueueCommand Lnet/minecraft/command/CommandExecutionContext;enqueueCommand(Lnet/minecraft/command/CommandQueueEntry;)V
    • escape

      public void escape(int depth)
      Mappings:
      Namespace Name Mixin selector
      official a Lgo;a(I)V
      intermediary method_54391 Lnet/minecraft/class_8854;method_54391(I)V
      named escape Lnet/minecraft/command/CommandExecutionContext;escape(I)V
    • getEscapeControl

      public Frame.Control getEscapeControl(int depth)
      Mappings:
      Namespace Name Mixin selector
      official b Lgo;b(I)Lgq$a;
      intermediary method_54890 Lnet/minecraft/class_8854;method_54890(I)Lnet/minecraft/class_8937$class_8938;
      named getEscapeControl Lnet/minecraft/command/CommandExecutionContext;getEscapeControl(I)Lnet/minecraft/command/Frame$Control;
    • run

      public void run()
      Mappings:
      Namespace Name Mixin selector
      official a Lgo;a()V
      intermediary method_54390 Lnet/minecraft/class_8854;method_54390()V
      named run Lnet/minecraft/command/CommandExecutionContext;run()V
    • queuePendingCommands

      private void queuePendingCommands()
      Mappings:
      Namespace Name Mixin selector
      official g Lgo;g()V
      intermediary method_55594 Lnet/minecraft/class_8854;method_55594()V
      named queuePendingCommands Lnet/minecraft/command/CommandExecutionContext;queuePendingCommands()V
    • setTracer

      public void setTracer(@Nullable @Nullable Tracer tracer)
      Mappings:
      Namespace Name Mixin selector
      official a Lgo;a(Lgr;)V
      intermediary method_54394 Lnet/minecraft/class_8854;method_54394(Lnet/minecraft/class_6346;)V
      named setTracer Lnet/minecraft/command/CommandExecutionContext;setTracer(Lnet/minecraft/server/function/Tracer;)V
    • getTracer

      @Nullable public @Nullable Tracer getTracer()
      Mappings:
      Namespace Name Mixin selector
      official b Lgo;b()Lgr;
      intermediary method_54396 Lnet/minecraft/class_8854;method_54396()Lnet/minecraft/class_6346;
      named getTracer Lnet/minecraft/command/CommandExecutionContext;getTracer()Lnet/minecraft/server/function/Tracer;
    • getProfiler

      public Profiler getProfiler()
      Mappings:
      Namespace Name Mixin selector
      official c Lgo;c()Lbgs;
      intermediary method_54397 Lnet/minecraft/class_8854;method_54397()Lnet/minecraft/class_3695;
      named getProfiler Lnet/minecraft/command/CommandExecutionContext;getProfiler()Lnet/minecraft/util/profiler/Profiler;
    • getForkLimit

      public int getForkLimit()
      Mappings:
      Namespace Name Mixin selector
      official d Lgo;d()I
      intermediary method_54398 Lnet/minecraft/class_8854;method_54398()I
      named getForkLimit Lnet/minecraft/command/CommandExecutionContext;getForkLimit()I
    • decrementCommandQuota

      public void decrementCommandQuota()
      Mappings:
      Namespace Name Mixin selector
      official e Lgo;e()V
      intermediary method_54399 Lnet/minecraft/class_8854;method_54399()V
      named decrementCommandQuota Lnet/minecraft/command/CommandExecutionContext;decrementCommandQuota()V
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable