Class: PlayerInteractWithEntityBeforeEventSignal
event player entityBeta
管理连接到玩家与实体交互前事件的回调。
Manages callbacks that are connected to before a player interacts with an entity.
Methods
subscribe()
subscribe(
callback): (arg0) =>void
World Mutation Early Execution Beta
Parameters
callback
(arg0) => void
Tip
此闭包将以受限执行权限被调用。
Tip
This closure is called with restricted-execution privilege.
Returns
Tip
以受限执行权限调用的闭包。
Tip
Closure that is called with restricted-execution privilege.
(arg0) => void
Remarks
添加一个将在玩家与实体交互前调用的回调。
Adds a callback that will be called before a player interacts with an entity.
unsubscribe()
unsubscribe(
callback):void
World Mutation Early Execution Beta
Parameters
callback
(arg0) => void
Tip
此闭包以受限执行权限被调用。
Tip
This closure is called with restricted-execution privilege.
Returns
void
Remarks
移除一个在玩家与实体交互前调用的回调。
Removes a callback from being called before a player interacts with an entity.
