public final class WorldEntitySpawner
extends java.lang.Object
Constructor and Description |
---|
WorldEntitySpawner() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canCreatureTypeSpawnAtLocation(EntitySpawnPlacementRegistry.SpawnPlacementType placeType,
IWorldReaderBase worldIn,
BlockPos pos,
EntityType<? extends EntityLiving> entityTypeIn) |
static boolean |
canSpawnAtBody(EntitySpawnPlacementRegistry.SpawnPlacementType placeType,
IWorldReaderBase worldIn,
BlockPos pos,
EntityType<? extends EntityLiving> entityTypeIn) |
int |
findChunksForSpawning(WorldServer worldServerIn,
boolean spawnHostileMobs,
boolean spawnPeacefulMobs,
boolean spawnOnSetTickRate) |
static boolean |
isValidEmptySpawnBlock(IBlockState blockIn,
IFluidState fluidIn) |
static void |
performWorldGenSpawning(IWorld worldIn,
Biome biomeIn,
int centerX,
int centerZ,
java.util.Random diameterX) |
public int findChunksForSpawning(WorldServer worldServerIn, boolean spawnHostileMobs, boolean spawnPeacefulMobs, boolean spawnOnSetTickRate)
public static boolean isValidEmptySpawnBlock(IBlockState blockIn, IFluidState fluidIn)
public static boolean canCreatureTypeSpawnAtLocation(EntitySpawnPlacementRegistry.SpawnPlacementType placeType, IWorldReaderBase worldIn, BlockPos pos, @Nullable EntityType<? extends EntityLiving> entityTypeIn)
public static boolean canSpawnAtBody(EntitySpawnPlacementRegistry.SpawnPlacementType placeType, IWorldReaderBase worldIn, BlockPos pos, @Nullable EntityType<? extends EntityLiving> entityTypeIn)