Package net.minecraft.world.gen
Class CatSpawner
java.lang.Object
net.minecraft.world.gen.CatSpawner
- All Implemented Interfaces:
Spawner
- Mappings:
Namespace Name official bjmintermediary net/minecraft/class_4274named net/minecraft/world/gen/CatSpawner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintspawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)Spawns entities into a world.private intspawn(BlockPos pos, ServerWorld world)private intspawnInHouse(ServerWorld world, BlockPos pos)private intspawnInSwampHut(ServerWorld world, BlockPos pos)
-
Field Details
-
SPAWN_COOLDOWN
private static final int SPAWN_COOLDOWN- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official aLbjm;a:Iintermediary field_30601Lnet/minecraft/class_4274;field_30601:Inamed SPAWN_COOLDOWNLnet/minecraft/world/gen/CatSpawner;SPAWN_COOLDOWN:I
-
ticksUntilNextSpawn
private int ticksUntilNextSpawn- Mappings:
Namespace Name Mixin selector official bLbjm;b:Iintermediary field_19171Lnet/minecraft/class_4274;field_19171:Inamed ticksUntilNextSpawnLnet/minecraft/world/gen/CatSpawner;ticksUntilNextSpawn:I
-
-
Constructor Details
-
CatSpawner
public CatSpawner()
-
-
Method Details
-
spawn
Spawns entities into a world.- Specified by:
spawnin interfaceSpawner- Parameters:
spawnMonsters- whether monsters should be spawnedspawnAnimals- whether animals should be spawned- Returns:
- the number of entities spawned
- Mappings:
Namespace Name Mixin selector official aLbwb;a(Labr;ZZ)Iintermediary method_6445Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)Inamed spawnLnet/minecraft/world/gen/Spawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)I
-
spawnInHouse
- Mappings:
Namespace Name Mixin selector official aLbjm;a(Labr;Lgg;)Iintermediary method_20263Lnet/minecraft/class_4274;method_20263(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Inamed spawnInHouseLnet/minecraft/world/gen/CatSpawner;spawnInHouse(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)I
-
spawnInSwampHut
- Mappings:
Namespace Name Mixin selector official bLbjm;b(Labr;Lgg;)Iintermediary method_20260Lnet/minecraft/class_4274;method_20260(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Inamed spawnInSwampHutLnet/minecraft/world/gen/CatSpawner;spawnInSwampHut(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)I
-
spawn
- Mappings:
Namespace Name Mixin selector official aLbjm;a(Lgg;Labr;)Iintermediary method_20262Lnet/minecraft/class_4274;method_20262(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)Inamed spawnLnet/minecraft/world/gen/CatSpawner;spawn(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)I
-