public final class WorldEntitySpawner
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
Constructor and Description |
---|
WorldEntitySpawner() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canCreatureTypeSpawnAtLocation(EntitySpawnPlacementRegistry.PlacementType placeType,
IWorldReader worldIn,
BlockPos pos,
EntityType<?> entityTypeIn) |
static boolean |
canSpawnAtBody(EntitySpawnPlacementRegistry.PlacementType placeType,
IWorldReader worldIn,
BlockPos pos,
EntityType<?> entityTypeIn) |
private static BlockPos |
getRandomHeight(World worldIn,
Chunk p_222262_1_) |
private static boolean |
getSpawnList(ChunkGenerator<?> p_222261_0_,
EntityClassification p_222261_1_,
Biome.SpawnListEntry p_222261_2_,
BlockPos p_222261_3_,
World world) |
private static Biome.SpawnListEntry |
getSpawnList(ChunkGenerator<?> p_222264_0_,
EntityClassification p_222264_1_,
java.util.Random p_222264_2_,
BlockPos p_222264_3_,
World world) |
private static BlockPos |
getTopSolidOrLiquidBlock(IWorldReader worldIn,
EntityType<?> p_208498_1_,
int x,
int z) |
static boolean |
isSpawnableSpace(IBlockReader worldIn,
BlockPos pos,
BlockState state,
IFluidState fluidStateIn) |
static void |
performWorldGenSpawning(IWorld worldIn,
Biome biomeIn,
int centerX,
int centerZ,
java.util.Random diameterX) |
static void |
spawnEntitiesInChunk(EntityClassification p_226701_0_,
ServerWorld p_226701_1_,
Chunk p_226701_2_,
BlockPos p_226701_3_) |
public static void spawnEntitiesInChunk(EntityClassification p_226701_0_, ServerWorld p_226701_1_, Chunk p_226701_2_, BlockPos p_226701_3_)
@Nullable private static Biome.SpawnListEntry getSpawnList(ChunkGenerator<?> p_222264_0_, EntityClassification p_222264_1_, java.util.Random p_222264_2_, BlockPos p_222264_3_, World world)
private static boolean getSpawnList(ChunkGenerator<?> p_222261_0_, EntityClassification p_222261_1_, Biome.SpawnListEntry p_222261_2_, BlockPos p_222261_3_, World world)
public static boolean isSpawnableSpace(IBlockReader worldIn, BlockPos pos, BlockState state, IFluidState fluidStateIn)
public static boolean canCreatureTypeSpawnAtLocation(EntitySpawnPlacementRegistry.PlacementType placeType, IWorldReader worldIn, BlockPos pos, @Nullable EntityType<?> entityTypeIn)
public static boolean canSpawnAtBody(EntitySpawnPlacementRegistry.PlacementType placeType, IWorldReader worldIn, BlockPos pos, @Nullable EntityType<?> entityTypeIn)
public static void performWorldGenSpawning(IWorld worldIn, Biome biomeIn, int centerX, int centerZ, java.util.Random diameterX)
private static BlockPos getTopSolidOrLiquidBlock(IWorldReader worldIn, @Nullable EntityType<?> p_208498_1_, int x, int z)