net.minecraft.command

public class CommandExecutionContext<T>

implements AutoCloseable

net.minecraft.commands.execution.ExecutionContext
net.minecraft.class_8854
net.minecraft.command.CommandExecutionContext

Field summary

Modifier and TypeField
private static final int
MAX_QUEUE_DEPTH
field_46729
MAX_COMMAND_QUEUE_LENGTH
private static final org.slf4j.Logger
LOGGER
field_46730
LOGGER
private final int
commandLimit
field_46731
maxCommandChainLength
private final int
forkLimit
field_46732
forkLimit
private final Profiler
profiler
field_46733
profiler
private Tracer
tracer
field_46734
tracer
private int
commandQuota
field_46735
commandsRemaining
private boolean
queueOverflow
field_46736
queueOverflowed
private final Deque<CommandQueueEntry<T>>
commandQueue
field_46737
commandQueue
private final List<CommandQueueEntry<T>>
newTopCommands
field_46738
pendingCommands
private int
currentFrameDepth
field_47705
currentDepth

Constructor summary

ModifierConstructor
public (int maxCommandChainLength, int maxCommandForkCount, Profiler profiler)

Method summary

Modifier and TypeMethod
private static <T extends AbstractServerCommandSource<T>> Frame
createTopFrame(ExecutionContext<T> context, CommandResultCallback frameResult)
method_54889(class_8854<T> arg0, class_8935 arg1)
frame(CommandExecutionContext<T> context, ReturnValueConsumer returnValueConsumer)
public static <T extends AbstractServerCommandSource<T>> void
queueInitialFunctionCall(ExecutionContext<T> context, InstantiatedFunction<T> function, T sender, CommandResultCallback functionReturn)
method_54395(class_8854<T> arg0, class_8868<T> arg1, T arg2, class_8935 arg3)
enqueueProcedureCall(CommandExecutionContext<T> context, Procedure<T> procedure, T source, ReturnValueConsumer returnValueConsumer)
public static <T extends AbstractServerCommandSource<T>> void
queueInitialCommandExecution(ExecutionContext<T> context, String command, com.mojang.brigadier.context.ContextChain<T> executionChain, T sender, CommandResultCallback commandReturn)
method_54393(class_8854<T> arg0, String arg1, com.mojang.brigadier.context.ContextChain<T> arg2, T arg3, class_8935 arg4)
enqueueCommand(CommandExecutionContext<T> context, String command, com.mojang.brigadier.context.ContextChain<T> contextChain, T source, ReturnValueConsumer returnValueConsumer)
private void
handleQueueOverflow()
method_54400()
markQueueOverflowed()
public void
queueNext(CommandQueueEntry<T> entry)
method_54392(class_8847<T> arg0)
enqueueCommand(CommandQueueEntry<T> entry)
public void
discardAtDepthOrHigher(int depthToDiscard)
method_54391(int arg0)
escape(int depth)
public Frame$Control
frameControlForDepth(int depthToDiscard)
method_54890(int arg0)
getEscapeControl(int depth)
public void
runCommandQueue()
method_54390()
run()
private void
pushNewCommands()
method_55594()
queuePendingCommands()
public void
tracer(TraceCallbacks tracer)
method_54394(class_6346 arg0)
setTracer(Tracer tracer)
public Tracer
tracer()
method_54396()
getTracer()
public Profiler
profiler()
method_54397()
getProfiler()
public int
forkLimit()
method_54398()
getForkLimit()
public void
incrementCost()
method_54399()
decrementCommandQuota()
public void
close()
private void
lambda$frameControlForDepth$0(int arg0)
method_54891(int arg0)
method_54891(int arg0)