Skip to content

Package net.minecraft.commands.execution

Part 1/1


ChainModifiers

  • Full name: net.minecraft.commands.execution.ChainModifiers
  • Package: net.minecraft.commands.execution
  • Source: commonnet/minecraft/commands/execution/ChainModifiers.java
  • Type: record
  • Modifiers: public

net.minecraft.commands.execution.ChainModifiers#isForked()

  • Origin: common
  • Source: net/minecraft/commands/execution/ChainModifiers.java:13
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Forked

ทำงานยังไง

คืนค่า: (this.flags & 1) != 0.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ChainModifiers instance = ...;
boolean result = instance.isForked();

net.minecraft.commands.execution.ChainModifiers#isReturn()

  • Origin: common
  • Source: net/minecraft/commands/execution/ChainModifiers.java:21
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Return

ทำงานยังไง

คืนค่า: (this.flags & 2) != 0.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ChainModifiers instance = ...;
boolean result = instance.isReturn();

net.minecraft.commands.execution.ChainModifiers#setForked()

  • Origin: common
  • Source: net/minecraft/commands/execution/ChainModifiers.java:17
  • Modifiers: public
  • Return: ChainModifiers

คืออะไร

กำหนดค่า Forked

ทำงานยังไง

เรียกต่อ: setFlag(). คืนค่า: this.setFlag((byte)1).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ChainModifiers instance = ...;
ChainModifiers result = instance.setForked();

net.minecraft.commands.execution.ChainModifiers#setReturn()

  • Origin: common
  • Source: net/minecraft/commands/execution/ChainModifiers.java:25
  • Modifiers: public
  • Return: ChainModifiers

คืออะไร

กำหนดค่า Return

ทำงานยังไง

เรียกต่อ: setFlag(). คืนค่า: this.setFlag((byte)2).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ChainModifiers instance = ...;
ChainModifiers result = instance.setReturn();

CommandQueueEntry

  • Full name: net.minecraft.commands.execution.CommandQueueEntry
  • Package: net.minecraft.commands.execution
  • Source: commonnet/minecraft/commands/execution/CommandQueueEntry.java
  • Type: record
  • Modifiers: public

net.minecraft.commands.execution.CommandQueueEntry#execute(ExecutionContext<T>)

  • Origin: common
  • Source: net/minecraft/commands/execution/CommandQueueEntry.java:4
  • Modifiers: public
  • Return: void

คืออะไร

สั่งทำงาน execute

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ExecutionContext<T> executionContext

ตัวอย่างใช้งาน

CommandQueueEntry instance = ...;
ExecutionContext<T> executionContext = ...;
instance.execute(executionContext);

CustomCommandExecutor

  • Full name: net.minecraft.commands.execution.CustomCommandExecutor
  • Package: net.minecraft.commands.execution
  • Source: commonnet/minecraft/commands/execution/CustomCommandExecutor.java
  • Type: interface
  • Modifiers: public

net.minecraft.commands.execution.CustomCommandExecutor#run(T,ContextChain<T>,ChainModifiers,ExecutionControl<T>)

  • Origin: common
  • Source: net/minecraft/commands/execution/CustomCommandExecutor.java:11
  • Modifiers: ``
  • Return: void

คืออะไร

สั่งทำงาน run

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • T object
  • ContextChain<T> contextChain
  • ChainModifiers chainModifiers
  • ExecutionControl<T> executionControl

ตัวอย่างใช้งาน

CustomCommandExecutor instance = ...;
T object = ...;
ContextChain<T> contextChain = ...;
ChainModifiers chainModifiers = ...;
ExecutionControl<T> executionControl = ...;
instance.run(object, contextChain, chainModifiers, executionControl);

CustomModifierExecutor

  • Full name: net.minecraft.commands.execution.CustomModifierExecutor
  • Package: net.minecraft.commands.execution
  • Source: commonnet/minecraft/commands/execution/CustomModifierExecutor.java
  • Type: interface
  • Modifiers: public

net.minecraft.commands.execution.CustomModifierExecutor#apply(T,List<T>,ContextChain<T>,ChainModifiers,ExecutionControl<T>)

  • Origin: common
  • Source: net/minecraft/commands/execution/CustomModifierExecutor.java:11
  • Modifiers: ``
  • Return: void

คืออะไร

นำไปใช้ apply

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • T object
  • List<T> list
  • ContextChain<T> contextChain
  • ChainModifiers chainModifiers
  • ExecutionControl<T> executionControl

ตัวอย่างใช้งาน

CustomModifierExecutor instance = ...;
T object = ...;
List<T> list = ...;
ContextChain<T> contextChain = ...;
ChainModifiers chainModifiers = ...;
ExecutionControl<T> executionControl = ...;
instance.apply(object, list, contextChain, chainModifiers, executionControl);

EntryAction

  • Full name: net.minecraft.commands.execution.EntryAction
  • Package: net.minecraft.commands.execution
  • Source: commonnet/minecraft/commands/execution/EntryAction.java
  • Type: interface
  • Modifiers: public

net.minecraft.commands.execution.EntryAction#execute(ExecutionContext<T>,Frame)

  • Origin: common
  • Source: net/minecraft/commands/execution/EntryAction.java:5
  • Modifiers: ``
  • Return: void

คืออะไร

สั่งทำงาน execute

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ExecutionContext<T> executionContext
  • Frame frame

ตัวอย่างใช้งาน

EntryAction instance = ...;
ExecutionContext<T> executionContext = ...;
Frame frame = ...;
instance.execute(executionContext, frame);

ExecutionContext

  • Full name: net.minecraft.commands.execution.ExecutionContext
  • Package: net.minecraft.commands.execution
  • Source: commonnet/minecraft/commands/execution/ExecutionContext.java
  • Type: class
  • Modifiers: public
  • Implements: AutoCloseable

net.minecraft.commands.execution.ExecutionContext#close()

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionContext.java:149
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ตรวจเงื่อนไขด้วย if.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ExecutionContext instance = ...;
instance.close();

net.minecraft.commands.execution.ExecutionContext#discardAtDepthOrHigher(int)

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionContext.java:83
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ discardAtDepthOrHigher ตาม implementation ของ ExecutionContext

ทำงานยังไง

มีการวนลูป. เรียกต่อ: isEmpty(), peek(), frame(), depth(), removeFirst().

Parameters

  • int i

ตัวอย่างใช้งาน

ExecutionContext instance = ...;
instance.discardAtDepthOrHigher(0);

net.minecraft.commands.execution.ExecutionContext#ExecutionContext(int,int,ProfilerFiller)

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionContext.java:32
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ExecutionContext ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: commandLimit, forkLimit, profiler, commandQuota.

Parameters

  • int i
  • int j
  • ProfilerFiller profilerFiller

ตัวอย่างใช้งาน

ProfilerFiller profilerFiller = ...;
ExecutionContext instance = new ExecutionContext(0, 0, profilerFiller);

net.minecraft.commands.execution.ExecutionContext#forkLimit()

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionContext.java:141
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ forkLimit ตาม implementation ของ ExecutionContext

ทำงานยังไง

คืนค่า: this.forkLimit.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ExecutionContext instance = ...;
int result = instance.forkLimit();

net.minecraft.commands.execution.ExecutionContext#frameControlForDepth(int)

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionContext.java:89
  • Modifiers: public
  • Return: Frame.FrameControl

คืออะไร

ดำเนินการ frameControlForDepth ตาม implementation ของ ExecutionContext

ทำงานยังไง

เรียกต่อ: discardAtDepthOrHigher(). คืนค่า: () -> this.discardAtDepthOrHigher(i).

Parameters

  • int i

ตัวอย่างใช้งาน

ExecutionContext instance = ...;
Frame.FrameControl result = instance.frameControlForDepth(0);

net.minecraft.commands.execution.ExecutionContext#incrementCost()

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionContext.java:145
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ incrementCost ตาม implementation ของ ExecutionContext

ทำงานยังไง

แก้ state: commandQuota.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ExecutionContext instance = ...;
instance.incrementCost();

net.minecraft.commands.execution.ExecutionContext#profiler()

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionContext.java:137
  • Modifiers: public
  • Return: ProfilerFiller

คืออะไร

ดำเนินการ profiler ตาม implementation ของ ExecutionContext

ทำงานยังไง

คืนค่า: this.profiler.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ExecutionContext instance = ...;
ProfilerFiller result = instance.profiler();

net.minecraft.commands.execution.ExecutionContext#queueInitialCommandExecution(ExecutionContext<T>,String,ContextChain<T>,T,CommandResultCallback)

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionContext.java:59
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ queueInitialCommandExecution ตาม implementation ของ ExecutionContext

ทำงานยังไง

เรียกต่อ: queueNext(), createTopFrame(). สร้างออบเจ็กต์: CommandQueueEntry<>, BuildContexts.TopLevel<>.

Parameters

  • ExecutionContext<T> executionContext
  • String string
  • ContextChain<T> contextChain
  • T executionCommandSource
  • CommandResultCallback commandResultCallback

ตัวอย่างใช้งาน

ExecutionContext<T> executionContext = ...;
ContextChain<T> contextChain = ...;
T executionCommandSource = ...;
CommandResultCallback commandResultCallback = ...;
ExecutionContext.queueInitialCommandExecution(executionContext, "value", contextChain, executionCommandSource, commandResultCallback);

net.minecraft.commands.execution.ExecutionContext#queueInitialFunctionCall(ExecutionContext<T>,InstantiatedFunction<T>,T,CommandResultCallback)

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionContext.java:48
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ queueInitialFunctionCall ตาม implementation ของ ExecutionContext

ทำงานยังไง

เรียกต่อ: queueNext(), createTopFrame(), callback(), bind(). สร้างออบเจ็กต์: CommandQueueEntry<>, CallFunction<>.

Parameters

  • ExecutionContext<T> executionContext
  • InstantiatedFunction<T> instantiatedFunction
  • T executionCommandSource
  • CommandResultCallback commandResultCallback

ตัวอย่างใช้งาน

ExecutionContext<T> executionContext = ...;
InstantiatedFunction<T> instantiatedFunction = ...;
T executionCommandSource = ...;
CommandResultCallback commandResultCallback = ...;
ExecutionContext.queueInitialFunctionCall(executionContext, instantiatedFunction, executionCommandSource, commandResultCallback);

net.minecraft.commands.execution.ExecutionContext#queueNext(CommandQueueEntry<T>)

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionContext.java:73
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ queueNext ตาม implementation ของ ExecutionContext

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), handleQueueOverflow(), add().

Parameters

  • CommandQueueEntry<T> commandQueueEntry

ตัวอย่างใช้งาน

ExecutionContext instance = ...;
CommandQueueEntry<T> commandQueueEntry = ...;
instance.queueNext(commandQueueEntry);

net.minecraft.commands.execution.ExecutionContext#runCommandQueue()

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionContext.java:93
  • Modifiers: public
  • Return: void

คืออะไร

สั่งทำงาน Command Queue

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: currentFrameDepth. เรียกต่อ: pushNewCommands(), info(), limit(), pollFirst(), frame(), depth(), execute(), error().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ExecutionContext instance = ...;
instance.runCommandQueue();

net.minecraft.commands.execution.ExecutionContext#tracer()

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionContext.java:132
  • Modifiers: public
  • Return: TraceCallbacks

คืออะไร

ดำเนินการ tracer ตาม implementation ของ ExecutionContext

ทำงานยังไง

คืนค่า: this.tracer.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ExecutionContext instance = ...;
TraceCallbacks result = instance.tracer();

net.minecraft.commands.execution.ExecutionContext#tracer(TraceCallbacks)

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionContext.java:128
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ tracer ตาม implementation ของ ExecutionContext

ทำงานยังไง

แก้ state: tracer.

Parameters

  • TraceCallbacks traceCallbacks

ตัวอย่างใช้งาน

ExecutionContext instance = ...;
TraceCallbacks traceCallbacks = ...;
instance.tracer(traceCallbacks);

ExecutionControl

  • Full name: net.minecraft.commands.execution.ExecutionControl
  • Package: net.minecraft.commands.execution
  • Source: commonnet/minecraft/commands/execution/ExecutionControl.java
  • Type: interface
  • Modifiers: public

net.minecraft.commands.execution.ExecutionControl#create(ExecutionContext<T>,Frame)

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionControl.java:16
  • Modifiers: static
  • Return: ExecutionControl<T>

คืออะไร

สร้าง create

ทำงานยังไง

เรียกต่อ: queueNext(), tracer(), currentFrame(). สร้างออบเจ็กต์: ExecutionControl<T>, CommandQueueEntry<>. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ExecutionContext<T> executionContext
  • Frame frame

ตัวอย่างใช้งาน

ExecutionContext<T> executionContext = ...;
Frame frame = ...;
ExecutionControl<T> result = ExecutionControl.create(executionContext, frame);

net.minecraft.commands.execution.ExecutionControl#currentFrame()

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionControl.java:14
  • Modifiers: ``
  • Return: Frame

คืออะไร

ดำเนินการ currentFrame ตาม implementation ของ ExecutionControl

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ExecutionControl instance = ...;
Frame result = instance.currentFrame();

net.minecraft.commands.execution.ExecutionControl#queueNext(EntryAction<T>)

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionControl.java:7
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ queueNext ตาม implementation ของ ExecutionControl

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • EntryAction<T> entryAction

ตัวอย่างใช้งาน

ExecutionControl instance = ...;
EntryAction<T> entryAction = ...;
instance.queueNext(entryAction);

net.minecraft.commands.execution.ExecutionControl#tracer()

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionControl.java:11
  • Modifiers: ``
  • Return: TraceCallbacks

คืออะไร

ดำเนินการ tracer ตาม implementation ของ ExecutionControl

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ExecutionControl instance = ...;
TraceCallbacks result = instance.tracer();

net.minecraft.commands.execution.ExecutionControl#tracer(TraceCallbacks)

  • Origin: common
  • Source: net/minecraft/commands/execution/ExecutionControl.java:9
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ tracer ตาม implementation ของ ExecutionControl

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • TraceCallbacks traceCallbacks

ตัวอย่างใช้งาน

ExecutionControl instance = ...;
TraceCallbacks traceCallbacks = ...;
instance.tracer(traceCallbacks);

Frame

  • Full name: net.minecraft.commands.execution.Frame
  • Package: net.minecraft.commands.execution
  • Source: commonnet/minecraft/commands/execution/Frame.java
  • Type: record
  • Modifiers: public

net.minecraft.commands.execution.Frame#discard()

  • Origin: common
  • Source: net/minecraft/commands/execution/Frame.java:14
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ discard ตาม implementation ของ Frame

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Frame instance = ...;
instance.discard();

net.minecraft.commands.execution.Frame#returnFailure()

  • Origin: common
  • Source: net/minecraft/commands/execution/Frame.java:10
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ returnFailure ตาม implementation ของ Frame

ทำงานยังไง

เรียกต่อ: onFailure().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Frame instance = ...;
instance.returnFailure();

net.minecraft.commands.execution.Frame#returnSuccess(int)

  • Origin: common
  • Source: net/minecraft/commands/execution/Frame.java:6
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ returnSuccess ตาม implementation ของ Frame

ทำงานยังไง

เรียกต่อ: onSuccess().

Parameters

  • int i

ตัวอย่างใช้งาน

Frame instance = ...;
instance.returnSuccess(0);

Frame$FrameControl

  • Full name: net.minecraft.commands.execution.Frame$FrameControl
  • Package: net.minecraft.commands.execution
  • Source: commonnet/minecraft/commands/execution/Frame.java
  • Type: interface
  • Modifiers: public

net.minecraft.commands.execution.Frame$FrameControl#discard()

  • Origin: common
  • Source: net/minecraft/commands/execution/Frame.java:20
  • Modifiers: ``
  • Return: void

คืออะไร

ดำเนินการ discard ตาม implementation ของ Frame$FrameControl

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Frame.FrameControl instance = ...;
instance.discard();

TraceCallbacks

  • Full name: net.minecraft.commands.execution.TraceCallbacks
  • Package: net.minecraft.commands.execution
  • Source: commonnet/minecraft/commands/execution/TraceCallbacks.java
  • Type: interface
  • Modifiers: public
  • Implements: AutoCloseable

net.minecraft.commands.execution.TraceCallbacks#close()

  • Origin: common
  • Source: net/minecraft/commands/execution/TraceCallbacks.java:14
  • Modifiers: ``
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TraceCallbacks instance = ...;
instance.close();

net.minecraft.commands.execution.TraceCallbacks#onCall(int,ResourceLocation,int)

  • Origin: common
  • Source: net/minecraft/commands/execution/TraceCallbacks.java:12
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการเหตุการณ์ Call

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • int i
  • ResourceLocation resourceLocation
  • int j

ตัวอย่างใช้งาน

TraceCallbacks instance = ...;
ResourceLocation resourceLocation = ...;
instance.onCall(0, resourceLocation, 0);

net.minecraft.commands.execution.TraceCallbacks#onCommand(int,String)

  • Origin: common
  • Source: net/minecraft/commands/execution/TraceCallbacks.java:6
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการเหตุการณ์ Command

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • int i
  • String string

ตัวอย่างใช้งาน

TraceCallbacks instance = ...;
instance.onCommand(0, "value");

net.minecraft.commands.execution.TraceCallbacks#onError(String)

  • Origin: common
  • Source: net/minecraft/commands/execution/TraceCallbacks.java:10
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการเหตุการณ์ Error

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • String string

ตัวอย่างใช้งาน

TraceCallbacks instance = ...;
instance.onError("value");

net.minecraft.commands.execution.TraceCallbacks#onReturn(int,String,int)

  • Origin: common
  • Source: net/minecraft/commands/execution/TraceCallbacks.java:8
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการเหตุการณ์ Return

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • int i
  • String string
  • int j

ตัวอย่างใช้งาน

TraceCallbacks instance = ...;
instance.onReturn(0, "value", 0);

UnboundEntryAction

  • Full name: net.minecraft.commands.execution.UnboundEntryAction
  • Package: net.minecraft.commands.execution
  • Source: commonnet/minecraft/commands/execution/UnboundEntryAction.java
  • Type: interface
  • Modifiers: public

net.minecraft.commands.execution.UnboundEntryAction#bind(T)

  • Origin: common
  • Source: net/minecraft/commands/execution/UnboundEntryAction.java:7
  • Modifiers: default
  • Return: EntryAction<T>

คืออะไร

ผูก bind

ทำงานยังไง

เรียกต่อ: execute(). คืนค่า: (executionContext, frame) -> this.execute(object, executionContext, frame).

Parameters

  • T object

ตัวอย่างใช้งาน

UnboundEntryAction instance = ...;
T object = ...;
EntryAction<T> result = instance.bind(object);

net.minecraft.commands.execution.UnboundEntryAction#execute(T,ExecutionContext<T>,Frame)

  • Origin: common
  • Source: net/minecraft/commands/execution/UnboundEntryAction.java:5
  • Modifiers: ``
  • Return: void

คืออะไร

สั่งทำงาน execute

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • T object
  • ExecutionContext<T> executionContext
  • Frame frame

ตัวอย่างใช้งาน

UnboundEntryAction instance = ...;
T object = ...;
ExecutionContext<T> executionContext = ...;
Frame frame = ...;
instance.execute(object, executionContext, frame);