Package net.minecraft.commands.execution
Class ExecutionContext<T>
java.lang.Object
net.minecraft.commands.execution.ExecutionContext<T>
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final Deque<CommandQueueEntry<T>>
private int
private int
private final int
private static final org.slf4j.Logger
private static final int
private final List<CommandQueueEntry<T>>
private final ProfilerFiller
private boolean
private TraceCallbacks
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private static <T extends ExecutionCommandSource<T>>
FramecreateTopFrame
(ExecutionContext<T> p_309594_, CommandResultCallback p_309689_) void
discardAtDepthOrHigher
(int p_306290_) int
frameControlForDepth
(int p_309645_) private void
void
profiler()
private void
static <T extends ExecutionCommandSource<T>>
voidqueueInitialCommandExecution
(ExecutionContext<T> p_306236_, String p_305860_, com.mojang.brigadier.context.ContextChain<T> p_305784_, T p_306195_, CommandResultCallback p_309622_) static <T extends ExecutionCommandSource<T>>
voidqueueInitialFunctionCall
(ExecutionContext<T> p_309686_, InstantiatedFunction<T> p_306145_, T p_309607_, CommandResultCallback p_309681_) void
queueNext
(CommandQueueEntry<T> p_305869_) void
tracer()
void
tracer
(TraceCallbacks p_305950_)
-
Field Details
-
MAX_QUEUE_DEPTH
private static final int MAX_QUEUE_DEPTH- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
commandLimit
private final int commandLimit -
forkLimit
private final int forkLimit -
profiler
-
tracer
-
commandQuota
private int commandQuota -
queueOverflow
private boolean queueOverflow -
commandQueue
-
newTopCommands
-
currentFrameDepth
private int currentFrameDepth
-
-
Constructor Details
-
ExecutionContext
-
-
Method Details
-
createTopFrame
private static <T extends ExecutionCommandSource<T>> Frame createTopFrame(ExecutionContext<T> p_309594_, CommandResultCallback p_309689_) -
queueInitialFunctionCall
public static <T extends ExecutionCommandSource<T>> void queueInitialFunctionCall(ExecutionContext<T> p_309686_, InstantiatedFunction<T> p_306145_, T p_309607_, CommandResultCallback p_309681_) -
queueInitialCommandExecution
public static <T extends ExecutionCommandSource<T>> void queueInitialCommandExecution(ExecutionContext<T> p_306236_, String p_305860_, com.mojang.brigadier.context.ContextChain<T> p_305784_, T p_306195_, CommandResultCallback p_309622_) -
handleQueueOverflow
private void handleQueueOverflow() -
queueNext
-
discardAtDepthOrHigher
public void discardAtDepthOrHigher(int p_306290_) -
frameControlForDepth
-
runCommandQueue
public void runCommandQueue() -
pushNewCommands
private void pushNewCommands() -
tracer
-
tracer
-
profiler
-
forkLimit
public int forkLimit() -
incrementCost
public void incrementCost() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-