跳至主要內容

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;
最近更新:
貢獻者: Evan Hsieh