Package net.minecraft.world.spawner
Class CatSpawner
java.lang.Object
net.minecraft.world.spawner.CatSpawner
- All Implemented Interfaces:
- Spawner
A spawner for cats in villages and swamp huts.
- Implementation Note:
- Cats in swamp huts are also spawned in
 ChunkGenerator.getEntitySpawnList(net.minecraft.registry.entry.RegistryEntry<net.minecraft.world.biome.Biome>, net.minecraft.world.gen.StructureAccessor, net.minecraft.entity.SpawnGroup, net.minecraft.util.math.BlockPos).
- Mappings:
- Namespace - Name - official - bxx- intermediary - net/minecraft/class_4274- named - net/minecraft/world/spawner/CatSpawner
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintspawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals) Spawns entities into a world.private intspawn(BlockPos pos, ServerWorld world) Spawns a cat.private intspawnInHouse(ServerWorld world, BlockPos pos) Tries to spawn cats in villages.private intspawnInSwampHut(ServerWorld world, BlockPos pos) Tries to spawn cats in swamp huts.
- 
Field Details- 
SPAWN_INTERVALprivate static final int SPAWN_INTERVAL- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbxx;a:I- intermediary - field_30601- Lnet/minecraft/class_4274;field_30601:I- named - SPAWN_INTERVAL- Lnet/minecraft/world/spawner/CatSpawner;SPAWN_INTERVAL:I
 
- 
cooldownprivate int cooldown- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbxx;b:I- intermediary - field_19171- Lnet/minecraft/class_4274;field_19171:I- named - cooldown- Lnet/minecraft/world/spawner/CatSpawner;cooldown:I
 
 
- 
- 
Constructor Details- 
CatSpawnerpublic CatSpawner()
 
- 
- 
Method Details- 
spawnSpawns entities into a world.- Specified by:
- spawnin interface- Spawner
- Parameters:
- spawnMonsters- whether monsters should be spawned
- spawnAnimals- whether animals should be spawned
- Returns:
- the number of entities spawned
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lclz;a(Laif;ZZ)I- intermediary - method_6445- Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)I- named - spawn- Lnet/minecraft/world/spawner/Spawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)I
 
- 
spawnInHouseTries to spawn cats in villages.- Returns:
- the number of cats spawned
- Implementation Note:
- Cats spawn when there are more than 5 occupied beds and less than 5 existing cats.
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbxx;a(Laif;Lgu;)I- intermediary - method_20263- Lnet/minecraft/class_4274;method_20263(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)I- named - spawnInHouse- Lnet/minecraft/world/spawner/CatSpawner;spawnInHouse(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)I
 
- 
spawnInSwampHutTries to spawn cats in swamp huts.- Returns:
- the number of cats spawned
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbxx;b(Laif;Lgu;)I- intermediary - method_20260- Lnet/minecraft/class_4274;method_20260(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)I- named - spawnInSwampHut- Lnet/minecraft/world/spawner/CatSpawner;spawnInSwampHut(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)I
 
- 
spawnSpawns a cat.- Returns:
- the number of cats spawned
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbxx;a(Lgu;Laif;)I- intermediary - method_20262- Lnet/minecraft/class_4274;method_20262(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)I- named - spawn- Lnet/minecraft/world/spawner/CatSpawner;spawn(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)I
 
 
-