public final class SpawnHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SpawnHelper.class_5259 |
static interface |
SpawnHelper.class_5260 |
static interface |
SpawnHelper.class_5261 |
static class |
SpawnHelper.class_5262 |
| Modifier and Type | Field and Description |
|---|---|
private static int |
field_24392 |
private static EntityCategory[] |
field_24393 |
private static Logger |
LOGGER |
| Constructor and Description |
|---|
SpawnHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canSpawn(SpawnRestriction.Location location,
WorldView world,
BlockPos pos,
EntityType<?> entityType) |
private static boolean |
containsSpawnEntry(StructureAccessor structureAccessor,
ChunkGenerator<?> chunkGenerator,
EntityCategory entityCategory,
Biome.SpawnEntry spawnEntry,
BlockPos blockPos) |
private static BlockPos |
getEntitySpawnPos(WorldView world,
EntityType<?> entityType,
int x,
int z) |
private static BlockPos |
getSpawnPos(World world,
WorldChunk chunk) |
static boolean |
isClearForSpawn(BlockView blockView,
BlockPos pos,
BlockState state,
FluidState fluidState) |
private static MobEntity |
method_24931(ServerWorld serverWorld,
EntityType<?> entityType) |
private static boolean |
method_24932(ServerWorld serverWorld,
MobEntity mobEntity,
double double2) |
private static boolean |
method_24933(ServerWorld serverWorld,
Chunk chunk,
BlockPos.Mutable mutable,
double double2) |
private static boolean |
method_24934(ServerWorld serverWorld,
EntityCategory entityCategory,
StructureAccessor structureAccessor,
ChunkGenerator<?> chunkGenerator,
Biome.SpawnEntry spawnEntry,
BlockPos.Mutable mutable,
double double2) |
static SpawnHelper.class_5262 |
method_27815(int int2,
Iterable<Entity> iterable,
SpawnHelper.class_5260 class_5260) |
static void |
method_27821(ServerWorld serverWorld,
WorldChunk worldChunk,
SpawnHelper.class_5262 class_5262,
boolean bool,
boolean bool2,
boolean bool3) |
private static Biome |
method_27822(BlockPos blockPos,
Chunk chunk) |
private static Biome.SpawnEntry |
pickRandomSpawnEntry(StructureAccessor structureAccessor,
ChunkGenerator<?> chunkGenerator,
EntityCategory entityCategory,
Random random,
BlockPos blockPos) |
static void |
populateEntities(IWorld world,
Biome biome,
int chunkX,
int chunkZ,
Random random) |
static void |
spawnEntitiesInChunk(EntityCategory entityCategory,
ServerWorld serverWorld,
Chunk chunk,
BlockPos blockPos,
SpawnHelper.class_5261 class_5261,
SpawnHelper.class_5259 class_5259) |
static void |
spawnEntitiesInChunk(EntityCategory entityCategory,
ServerWorld serverWorld,
WorldChunk worldChunk,
SpawnHelper.class_5261 class_5261,
SpawnHelper.class_5259 class_5259) |
private static final Logger LOGGER
private static final int field_24392
private static final EntityCategory[] field_24393
public static SpawnHelper.class_5262 method_27815(int int2, Iterable<Entity> iterable, SpawnHelper.class_5260 class_5260)
public static void method_27821(ServerWorld serverWorld, WorldChunk worldChunk, SpawnHelper.class_5262 class_5262, boolean bool, boolean bool2, boolean bool3)
public static void spawnEntitiesInChunk(EntityCategory entityCategory, ServerWorld serverWorld, WorldChunk worldChunk, SpawnHelper.class_5261 class_5261, SpawnHelper.class_5259 class_5259)
public static void spawnEntitiesInChunk(EntityCategory entityCategory, ServerWorld serverWorld, Chunk chunk, BlockPos blockPos, SpawnHelper.class_5261 class_5261, SpawnHelper.class_5259 class_5259)
private static boolean method_24933(ServerWorld serverWorld, Chunk chunk, BlockPos.Mutable mutable, double double2)
private static boolean method_24934(ServerWorld serverWorld, EntityCategory entityCategory, StructureAccessor structureAccessor, ChunkGenerator<?> chunkGenerator, Biome.SpawnEntry spawnEntry, BlockPos.Mutable mutable, double double2)
@Nullable private static MobEntity method_24931(ServerWorld serverWorld, EntityType<?> entityType)
private static boolean method_24932(ServerWorld serverWorld, MobEntity mobEntity, double double2)
@Nullable private static Biome.SpawnEntry pickRandomSpawnEntry(StructureAccessor structureAccessor, ChunkGenerator<?> chunkGenerator, EntityCategory entityCategory, Random random, BlockPos blockPos)
private static boolean containsSpawnEntry(StructureAccessor structureAccessor, ChunkGenerator<?> chunkGenerator, EntityCategory entityCategory, Biome.SpawnEntry spawnEntry, BlockPos blockPos)
private static BlockPos getSpawnPos(World world, WorldChunk chunk)
public static boolean isClearForSpawn(BlockView blockView, BlockPos pos, BlockState state, FluidState fluidState)
public static boolean canSpawn(SpawnRestriction.Location location, WorldView world, BlockPos pos, @Nullable EntityType<?> entityType)
public static void populateEntities(IWorld world, Biome biome, int chunkX, int chunkZ, Random random)
private static BlockPos getEntitySpawnPos(WorldView world, @Nullable EntityType<?> entityType, int x, int z)