CLASS net/minecraft/class_5304 net/minecraft/world/spawner/Spawner COMMENT Spawns entities in a world. COMMENT COMMENT

A spawner is typically used to spawn entities within a COMMENT special context, such as cats in a village or wandering traders. COMMENT This is different from COMMENT {@link net.minecraft.world.MobSpawnerLogic the mob spawner logic} COMMENT which is used for {@link net.minecraft.SpawnerBlock the spawner block}, COMMENT or the structure spawn conditions (such as guardians) which is defined in COMMENT {@link net.minecraft.world.gen.chunk.ChunkGeneratorSettings#getEntitySpawnList}. COMMENT However, cats in swamp huts are spawned in both {@link CatSpawner} and COMMENT the normal structure spawning. METHOD method_6445 spawn (Lnet/minecraft/class_3218;ZZ)I COMMENT Spawns entities into a world. COMMENT COMMENT @return the number of entities spawned ARG 1 world ARG 2 spawnMonsters COMMENT whether monsters should be spawned ARG 3 spawnAnimals COMMENT whether animals should be spawned