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 ho
  • 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_LENGTH Lnet/minecraft/command/CommandExecutionContext;MAX_COMMAND_QUEUE_LENGTH:I
      intermediary field_46729 Lnet/minecraft/class_8854;field_46729:I
      official a Lho;a:I
    • LOGGER

      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 Lho;b:Lorg/slf4j/Logger;
    • maxCommandChainLength

      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 Lho;c:I
    • forkLimit

      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 Lho;d:I
    • profiler

      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 Lho;e:Lbnj;
    • tracer

      @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 Lho;f:Lhr;
    • commandsRemaining

      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 Lho;g:I
    • queueOverflowed

      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 Lho;h:Z
    • commandQueue

      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 Lho;i:Ljava/util/Deque;
    • pendingCommands

      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 Lho;j:Ljava/util/List;
    • currentDepth

      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 Lho;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;)V
      intermediary <init> Lnet/minecraft/class_8854;<init>(IILnet/minecraft/class_3695;)V
      official <init> Lho;<init>(IILbnj;)V
  • Method Details

    • frame

      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 Lho;a(Lho;Lem;)Lhq;
    • 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 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 Lho;a(Lho;Lid;Ler;Lem;)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 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 Lho;a(Lho;Ljava/lang/String;Lcom/mojang/brigadier/context/ContextChain;Ler;Lem;)V
    • markQueueOverflowed

      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 Lho;f()V
    • enqueueCommand

      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 Lho;a(Lhk;)V
    • escape

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

      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 Lho;b(I)Lhq$a;
    • run

      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 Lho;a()V
    • queuePendingCommands

      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 Lho;g()V
    • setTracer

      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 Lho;a(Lhr;)V
    • getTracer

      @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 Lho;b()Lhr;
    • getProfiler

      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 Lho;c()Lbnj;
    • getForkLimit

      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 Lho;d()I
    • decrementCommandQuota

      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 Lho;e()V
    • close

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