EntityEvents.checkSpawn
2026/7/28小於 1 分鐘
/**
* Invoked before an entity is spawned into the world.
*
* Only entities from a `BaseSpawner` or world generation will trigger this event.
*/
function checkSpawn(
extra: $ResourceKey$$Type<$EntityType<object>>,
handler: (event: $CheckLivingEntitySpawnKubeEvent) => void,
): void;
function checkSpawn(
handler: (event: $CheckLivingEntitySpawnKubeEvent) => void,
): void;