public final class WorldEntitySpawner
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Set<ChunkPos> |
eligibleChunksForSpawning |
private static int |
MOB_COUNT_DIV |
Constructor and Description |
---|
WorldEntitySpawner() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canCreatureTypeSpawnAtLocation(EntityLiving.SpawnPlacementType spawnPlacementTypeIn,
World worldIn,
BlockPos pos) |
static boolean |
canCreatureTypeSpawnBody(EntityLiving.SpawnPlacementType spawnPlacementTypeIn,
World worldIn,
BlockPos pos) |
int |
findChunksForSpawning(WorldServer worldServerIn,
boolean spawnHostileMobs,
boolean spawnPeacefulMobs,
boolean spawnOnSetTickRate) |
private static BlockPos |
getRandomChunkPosition(World worldIn,
int x,
int z) |
static boolean |
isValidEmptySpawnBlock(IBlockState state) |
static void |
performWorldGenSpawning(World worldIn,
Biome biomeIn,
int centerX,
int centerZ,
int diameterX,
int diameterZ,
java.util.Random randomIn) |
private static final int MOB_COUNT_DIV
private final java.util.Set<ChunkPos> eligibleChunksForSpawning
public int findChunksForSpawning(WorldServer worldServerIn, boolean spawnHostileMobs, boolean spawnPeacefulMobs, boolean spawnOnSetTickRate)
public static boolean isValidEmptySpawnBlock(IBlockState state)
public static boolean canCreatureTypeSpawnAtLocation(EntityLiving.SpawnPlacementType spawnPlacementTypeIn, World worldIn, BlockPos pos)
public static boolean canCreatureTypeSpawnBody(EntityLiving.SpawnPlacementType spawnPlacementTypeIn, World worldIn, BlockPos pos)