2025-11-24 22:52:51 +03:00

37 lines
659 B
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.world.entity;
public enum EntitySpawnReason {
NATURAL,
CHUNK_GENERATION,
SPAWNER,
STRUCTURE,
BREEDING,
MOB_SUMMONED,
JOCKEY,
EVENT,
CONVERSION,
REINFORCEMENT,
TRIGGERED,
BUCKET,
SPAWN_ITEM_USE,
COMMAND,
DISPENSER,
PATROL,
TRIAL_SPAWNER,
LOAD,
DIMENSION_TRAVEL;
public static boolean isSpawner(EntitySpawnReason reason) {
return reason == SPAWNER || reason == TRIAL_SPAWNER;
}
public static boolean ignoresLightRequirements(EntitySpawnReason reason) {
return reason == TRIAL_SPAWNER;
}
}