表示一系列触发于实际动作发生之前的事件。通常来说,即将触发的事件可被修改或取消。
但请注意,在 before 类事件过程中,能够改变游戏状态的 API 将失效,试图调用将会抛出错误。
(例如:dimension.spawnEntity)
A set of events that fire before an actual action occurs. In
most cases, you can potentially cancel or modify the
impending event. Note that in before events any APIs that
modify gameplay state will not function and will throw an
error. (e.g., dimension.spawnEntity)
表示一系列触发于实际动作发生之前的事件。通常来说,即将触发的事件可被修改或取消。 但请注意,在 before 类事件过程中,能够改变游戏状态的 API 将失效,试图调用将会抛出错误。 (例如:dimension.spawnEntity)
A set of events that fire before an actual action occurs. In most cases, you can potentially cancel or modify the impending event. Note that in before events any APIs that modify gameplay state will not function and will throw an error. (e.g., dimension.spawnEntity)