public final class WorldEntitySpawner
extends java.lang.Object
Constructor and Description |
---|
WorldEntitySpawner() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canCreatureTypeSpawnAtLocation(EntityLiving.SpawnPlacementType spawnPlacementTypeIn,
World worldIn,
BlockPos pos) |
int |
findChunksForSpawning(WorldServer worldServerIn,
boolean spawnHostileMobs,
boolean spawnPeacefulMobs,
boolean spawnOnSetTickRate)
adds all chunks within the spawn radius of the players to eligibleChunksForSpawning.
|
static boolean |
isValidEmptySpawnBlock(IBlockState state) |
static void |
performWorldGenSpawning(World worldIn,
Biome biomeIn,
int p_77191_2_,
int p_77191_3_,
int p_77191_4_,
int p_77191_5_,
java.util.Random randomIn)
Called during chunk generation to spawn initial creatures.
|
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)