EntityEvents.beforeHurt
2025年3月29日小於 1 分鐘
/**
* Invoked before an entity is hurt by a damage source.
*/
function beforeHurt(extra: $ResourceKey$$Type<($EntityType<(object)>)>, handler: (event: $BeforeLivingEntityHurtKubeEvent) => void): void
function beforeHurt(handler: (event: $BeforeLivingEntityHurtKubeEvent) => void): void