Package net.minecraft.world.spawner
Class CatSpawner
java.lang.Object
net.minecraft.world.spawner.CatSpawner
- All Implemented Interfaces:
SpecialSpawner
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 named net/minecraft/world/spawner/CatSpawnerintermediary net/minecraft/class_4274official crq
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidspawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals) Spawns entities into a world.private voidspawn(BlockPos pos, ServerWorld world, boolean persistent) Spawns a cat.private voidspawnInHouse(ServerWorld world, BlockPos pos) Tries to spawn cats in villages.private voidspawnInSwampHut(ServerWorld world, BlockPos pos) Tries to spawn cats in swamp huts.
-
Field Details
-
SPAWN_INTERVAL
private static final int SPAWN_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector named SPAWN_INTERVALLnet/minecraft/world/spawner/CatSpawner;SPAWN_INTERVAL:Iintermediary field_30601Lnet/minecraft/class_4274;field_30601:Iofficial aLcrq;a:I
-
cooldown
private int cooldown- Mappings:
Namespace Name Mixin selector named cooldownLnet/minecraft/world/spawner/CatSpawner;cooldown:Iintermediary field_19171Lnet/minecraft/class_4274;field_19171:Iofficial bLcrq;b:I
-
-
Constructor Details
-
CatSpawner
public CatSpawner()
-
-
Method Details
-
spawn
Spawns entities into a world.- Specified by:
spawnin interfaceSpecialSpawner- Parameters:
spawnMonsters- whether monsters should be spawnedspawnAnimals- whether animals should be spawned- Mappings:
Namespace Name Mixin selector named spawnLnet/minecraft/world/spawner/SpecialSpawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)Vintermediary method_6445Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)Vofficial aLdjv;a(Lasb;ZZ)V
-
spawnInHouse
Tries to spawn cats in villages.- Implementation Note:
- Cats spawn when there are more than 5 occupied beds and less than 5 existing cats.
- Mappings:
Namespace Name Mixin selector named spawnInHouseLnet/minecraft/world/spawner/CatSpawner;spawnInHouse(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_20263Lnet/minecraft/class_4274;method_20263(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Vofficial aLcrq;a(Lasb;Liw;)V
-
spawnInSwampHut
Tries to spawn cats in swamp huts.- Mappings:
Namespace Name Mixin selector named spawnInSwampHutLnet/minecraft/world/spawner/CatSpawner;spawnInSwampHut(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_20260Lnet/minecraft/class_4274;method_20260(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Vofficial bLcrq;b(Lasb;Liw;)V
-
spawn
Spawns a cat.- Mappings:
Namespace Name Mixin selector named spawnLnet/minecraft/world/spawner/CatSpawner;spawn(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;Z)Vintermediary method_20262Lnet/minecraft/class_4274;method_20262(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;Z)Vofficial aLcrq;a(Liw;Lasb;Z)V
-