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
named net/minecraft/command/CommandExecutionContext
intermediary net/minecraft/class_8854
official hx
  • Field Details Link icon

    • MAX_COMMAND_QUEUE_LENGTH Link icon

      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 Lhx;a:I
    • LOGGER Link icon

      private static final Logger 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 Lhx;b:Lorg/slf4j/Logger;
    • maxCommandChainLength Link icon

      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 Lhx;c:I
    • forkLimit Link icon

      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 Lhx;d:I
    • profiler Link icon

      private final Profiler 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 Lhx;e:Lbou;
    • tracer Link icon

      @Nullable private @Nullable Tracer 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 Lhx;f:Lia;
    • commandsRemaining Link icon

      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 Lhx;g:I
    • queueOverflowed Link icon

      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 Lhx;h:Z
    • commandQueue Link icon

      private final Deque<CommandQueueEntry<T>> 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 Lhx;i:Ljava/util/Deque;
    • pendingCommands Link icon

      private final List<CommandQueueEntry<T>> 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 Lhx;j:Ljava/util/List;
    • currentDepth Link icon

      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 Lhx;k:I
  • Constructor Details Link icon

    • CommandExecutionContext Link icon

      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> Lhx;<init>(IILbou;)V
  • Method Details Link icon

    • frame Link icon

      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 Lhx;a(Lhx;Leu;)Lhz;
    • enqueueProcedureCall Link icon

      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 Lhx;a(Lhx;Lin;Lez;Leu;)V
    • enqueueCommand Link icon

      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 Lhx;a(Lhx;Ljava/lang/String;Lcom/mojang/brigadier/context/ContextChain;Lez;Leu;)V
    • markQueueOverflowed Link icon

      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 Lhx;f()V
    • enqueueCommand Link icon

      public void enqueueCommand(CommandQueueEntry<T> entry)
      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 Lhx;a(Lht;)V
    • escape Link icon

      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 Lhx;a(I)V
    • getEscapeControl Link icon

      public Frame.Control getEscapeControl(int depth)
      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 Lhx;b(I)Lhz$a;
    • run Link icon

      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 Lhx;a()V
    • queuePendingCommands Link icon

      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 Lhx;g()V
    • setTracer Link icon

      public void setTracer(@Nullable @Nullable Tracer tracer)
      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 Lhx;a(Lia;)V
    • getTracer Link icon

      @Nullable public @Nullable Tracer 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 Lhx;b()Lia;
    • getProfiler Link icon

      public Profiler 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 Lhx;c()Lbou;
    • getForkLimit Link icon

      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 Lhx;d()I
    • decrementCommandQuota Link icon

      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 Lhx;e()V
    • close Link icon

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