实验性
实验性
可选
options: EntityEventOptions添加一个回调函数,当实体的生命值发生变化时会调用该函数。 * Adds a callback that will be called when the health of an
该函数可以在早期执行模式下调用。
Adds a callback that will be called when the health of an entity changes.
实验性
移除一个回调函数,使其不再在实体生命值变化时被调用。 *
无法在只读模式下调用此函数,详见 WorldBeforeEvents。
该函数可以在早期执行模式下调用。
Removes a callback from being called when the health of an entity changes.
管理与实体生命值变化相关的回调函数。
Manages callbacks that are connected to when the health of an entity changes.