Class: LeverActionAfterEvent
eventBeta
包含与拉杆激活或停用相关的信息。
Contains information related to changes to a lever activating or deactivating.
Example
leverActionEvent.ts
Extends
Properties
block
readonlyblock:Block
Beta
Remarks
当前世界中此事件所在位置的方块。
Block currently in the world at the location of this event.
Inherited from
dimension
readonlydimension:Dimension
Beta
Remarks
包含此事件主体方块的维度。
Dimension that contains the block that is the subject of this event.
Inherited from
isPowered
readonlyisPowered:boolean
Beta
Remarks
如果拉杆已激活(即正在传输电力),则为 true。
True if the lever is activated (that is, transmitting power).
player
readonlyplayer:Player
Beta
Remarks
触发拉杆激活的可选玩家。
Optional player that triggered the lever activation.
