Class CatSpawner

java.lang.Object
net.minecraft.world.gen.CatSpawner
All Implemented Interfaces:
Spawner

public class CatSpawner
extends Object
implements Spawner
  • Field Details

    • ticksUntilNextSpawn

      private int ticksUntilNextSpawn
  • Constructor Details

    • CatSpawner

      public CatSpawner()
  • Method Details

    • spawn

      public int spawn​(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
      Spawns entities into a world.
      Specified by:
      spawn in interface Spawner
      Parameters:
      spawnMonsters - whether monsters should be spawned
      spawnAnimals - whether animals should be spawned
      Returns:
      the number of entities spawned
    • spawnInHouse

      private int spawnInHouse​(ServerWorld world, BlockPos pos)
    • spawnInSwampHut

      private int spawnInSwampHut​(ServerWorld world, BlockPos pos)
    • spawn

      private int spawn​(BlockPos pos, ServerWorld world)