实验性
实验性
可选
options: EntityEventOptions添加一个回调函数,当实体撞击方块时会调用该回调函数。
无法在只读模式下调用此函数,详见 WorldBeforeEvents。
此函数可在早期执行模式下调用。
This function can be called in early-execution mode.
实验性
移除一个回调函数,使其不再在实体撞击方块时被调用。
无法在只读模式下调用此函数,详见 WorldBeforeEvents。
此函数可在早期执行模式下调用。
This function can be called in early-execution mode.
管理与实体撞击方块时触发的回调函数。
Manages callbacks that are connected to when an entity hits a block.