Package net.minecraft.commands.execution
Class ExecutionContext<T>
java.lang.Object
net.minecraft.commands.execution.ExecutionContext<T>
- All Implemented Interfaces:
- AutoCloseable
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intprivate final Deque<CommandQueueEntry<T>>private intprivate intprivate final intprivate static final org.slf4j.Loggerprivate static final intprivate final List<CommandQueueEntry<T>>private final ProfilerFillerprivate booleanprivate TraceCallbacks
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()private static <T extends ExecutionCommandSource<T>>
 FramecreateTopFrame(ExecutionContext<T> p_309594_, CommandResultCallback p_309689_) voiddiscardAtDepthOrHigher(int p_306290_) intframeControlForDepth(int p_309645_) private voidvoidprofiler()private voidstatic <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_) voidqueueNext(CommandQueueEntry<T> p_305869_) voidtracer()voidtracer(TraceCallbacks p_305950_) 
- 
Field Details- 
MAX_QUEUE_DEPTHprivate static final int MAX_QUEUE_DEPTH- See Also:
 
- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
commandLimitprivate final int commandLimit
- 
forkLimitprivate final int forkLimit
- 
profiler
- 
tracer
- 
commandQuotaprivate int commandQuota
- 
queueOverflowprivate boolean queueOverflow
- 
commandQueue
- 
newTopCommands
- 
currentFrameDepthprivate int currentFrameDepth
 
- 
- 
Constructor Details- 
ExecutionContext
 
- 
- 
Method Details- 
createTopFrameprivate static <T extends ExecutionCommandSource<T>> Frame createTopFrame(ExecutionContext<T> p_309594_, CommandResultCallback p_309689_) 
- 
queueInitialFunctionCallpublic static <T extends ExecutionCommandSource<T>> void queueInitialFunctionCall(ExecutionContext<T> p_309686_, InstantiatedFunction<T> p_306145_, T p_309607_, CommandResultCallback p_309681_) 
- 
queueInitialCommandExecutionpublic 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_) 
- 
handleQueueOverflowprivate void handleQueueOverflow()
- 
queueNext
- 
discardAtDepthOrHigherpublic void discardAtDepthOrHigher(int p_306290_) 
- 
frameControlForDepth
- 
runCommandQueuepublic void runCommandQueue()
- 
pushNewCommandsprivate void pushNewCommands()
- 
tracer
- 
tracer
- 
profiler
- 
forkLimitpublic int forkLimit()
- 
incrementCostpublic void incrementCost()
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
 
-