Class SpawnerAnimals

java.lang.Object
net.minecraft.src.SpawnerAnimals

public final class SpawnerAnimals extends Object
  • Constructor Details

    • SpawnerAnimals

      public SpawnerAnimals()
  • Method Details

    • getRandomSpawningPointInChunk

      protected static ChunkPosition getRandomSpawningPointInChunk(World par0World, int par1, int par2)
      Given a chunk, find a random position in it.
    • findChunksForSpawning

      public int findChunksForSpawning(WorldServer par1WorldServer, boolean par2, boolean par3, boolean par4)
      adds all chunks within the spawn radius of the players to eligibleChunksForSpawning. pars: the world, hostileCreatures, passiveCreatures. returns number of eligible chunks.
    • performWorldGenSpawning

      public static void performWorldGenSpawning(World par0World, BiomeGenBase par1BiomeGenBase, int par2, int par3, int par4, int par5, Random par6Random)
      Called during chunk generation to spawn initial creatures.
    • checkIfAnimalCanSpawn

      public static boolean checkIfAnimalCanSpawn(SpawnListEntry entry, World world, int x, int y, int z)
    • canCreatureTypeSpawnAtLocation

      public static boolean canCreatureTypeSpawnAtLocation(EnumCreatureType type, World world, int i, int j, int k)
    • getVerticalOffsetForPos

      public static float getVerticalOffsetForPos(EnumCreatureType type, World world, int i, int j, int k)
    • canCreatureTypeSpawnInMaterial

      public static boolean canCreatureTypeSpawnInMaterial(EnumCreatureType type, Material material)
    • canEntitySpawnDuringWorldGen

      public static boolean canEntitySpawnDuringWorldGen(Class<? extends EntityLiving> entityClass, World world, int x, int y, int z)
    • setWorldGenSpawnBehavior

      public static void setWorldGenSpawnBehavior(Class<? extends EntityLiving> entityClass, SpawnBehavior spawnBehavior)
    • removeCustomWorldGenSpawnBehavior

      public static void removeCustomWorldGenSpawnBehavior(Class<? extends EntityLiving> entityClass)