Package net.minecraft.world
Class SpawnHelper
java.lang.Object
net.minecraft.world.SpawnHelper
- Mappings:
Namespace Name named net/minecraft/world/SpawnHelper
intermediary net/minecraft/class_1948
official dcl
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static class
static interface
-
Field Summary
Modifier and TypeFieldDescription(package private) static final int
static final int
static final int
private static final Logger
private static final int
private static final SpawnGroup[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
canSpawn
(ServerWorld world, SpawnGroup group, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnSettings.SpawnEntry spawnEntry, BlockPos.Mutable pos, double squaredDistance) private static boolean
containsSpawnEntry
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, SpawnSettings.SpawnEntry spawnEntry, BlockPos pos) createMob
(ServerWorld world, EntityType<?> type) (package private) static Biome
getBiomeDirectly
(BlockPos pos, Chunk chunk) private static BlockPos
getEntitySpawnPos
(WorldView world, EntityType<?> entityType, int x, int z) private static BlockPos
getRandomPosInChunkSection
(World world, WorldChunk chunk) private static Pool
<SpawnSettings.SpawnEntry> getSpawnEntries
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, BlockPos pos, @Nullable RegistryEntry<Biome> biomeEntry) private static boolean
isAcceptableSpawnPosition
(ServerWorld world, Chunk chunk, BlockPos.Mutable pos, double squaredDistance) static boolean
isClearForSpawn
(BlockView blockView, BlockPos pos, BlockState state, FluidState fluidState, EntityType<?> entityType) private static boolean
isValidSpawn
(ServerWorld world, MobEntity entity, double squaredDistance) private static Optional
<SpawnSettings.SpawnEntry> pickRandomSpawnEntry
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, Random random, BlockPos pos) static void
populateEntities
(ServerWorldAccess world, RegistryEntry<Biome> biomeEntry, ChunkPos chunkPos, Random random) static SpawnHelper.Info
setupSpawn
(int spawningChunkCount, Iterable<Entity> entities, SpawnHelper.ChunkSource chunkSource, SpawnDensityCapper densityCapper) static boolean
shouldUseNetherFortressSpawns
(BlockPos pos, ServerWorld world, SpawnGroup spawnGroup, StructureAccessor structureAccessor) static void
spawn
(ServerWorld world, WorldChunk chunk, SpawnHelper.Info info, boolean spawnAnimals, boolean spawnMonsters, boolean rareSpawn) static void
spawnEntitiesInChunk
(SpawnGroup group, ServerWorld world, BlockPos pos) static void
spawnEntitiesInChunk
(SpawnGroup group, ServerWorld world, Chunk chunk, BlockPos pos, SpawnHelper.Checker checker, SpawnHelper.Runner runner) static void
spawnEntitiesInChunk
(SpawnGroup group, ServerWorld world, WorldChunk chunk, SpawnHelper.Checker checker, SpawnHelper.Runner runner)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/world/SpawnHelper;LOGGER:Lorg/slf4j/Logger;
intermediary field_9292
Lnet/minecraft/class_1948;field_9292:Lorg/slf4j/Logger;
official c
Ldcl;c:Lorg/slf4j/Logger;
-
MIN_SPAWN_DISTANCE
private static final int MIN_SPAWN_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_SPAWN_DISTANCE
Lnet/minecraft/world/SpawnHelper;MIN_SPAWN_DISTANCE:I
intermediary field_30974
Lnet/minecraft/class_1948;field_30974:I
official d
Ldcl;d:I
-
field_30972
public static final int field_30972- See Also:
- Mappings:
Namespace Name Mixin selector named field_30972
Lnet/minecraft/world/SpawnHelper;field_30972:I
intermediary field_30972
Lnet/minecraft/class_1948;field_30972:I
official a
Ldcl;a:I
-
field_30973
public static final int field_30973- See Also:
- Mappings:
Namespace Name Mixin selector named field_30973
Lnet/minecraft/world/SpawnHelper;field_30973:I
intermediary field_30973
Lnet/minecraft/class_1948;field_30973:I
official b
Ldcl;b:I
-
CHUNK_AREA
static final int CHUNK_AREA- Mappings:
Namespace Name Mixin selector named CHUNK_AREA
Lnet/minecraft/world/SpawnHelper;CHUNK_AREA:I
intermediary field_24392
Lnet/minecraft/class_1948;field_24392:I
official e
Ldcl;e:I
-
SPAWNABLE_GROUPS
- Mappings:
Namespace Name Mixin selector named SPAWNABLE_GROUPS
Lnet/minecraft/world/SpawnHelper;SPAWNABLE_GROUPS:[Lnet/minecraft/entity/SpawnGroup;
intermediary field_24393
Lnet/minecraft/class_1948;field_24393:[Lnet/minecraft/class_1311;
official f
Ldcl;f:[Lbtu;
-
-
Constructor Details
-
SpawnHelper
private SpawnHelper()
-
-
Method Details
-
setupSpawn
public static SpawnHelper.Info setupSpawn(int spawningChunkCount, Iterable<Entity> entities, SpawnHelper.ChunkSource chunkSource, SpawnDensityCapper densityCapper) - Mappings:
Namespace Name Mixin selector named setupSpawn
Lnet/minecraft/world/SpawnHelper;setupSpawn(ILjava/lang/Iterable;Lnet/minecraft/world/SpawnHelper$ChunkSource;Lnet/minecraft/world/SpawnDensityCapper;)Lnet/minecraft/world/SpawnHelper$Info;
intermediary method_27815
Lnet/minecraft/class_1948;method_27815(ILjava/lang/Iterable;Lnet/minecraft/class_1948$class_5260;Lnet/minecraft/class_6540;)Lnet/minecraft/class_1948$class_5262;
official a
Ldcl;a(ILjava/lang/Iterable;Ldcl$b;Ldck;)Ldcl$d;
-
getBiomeDirectly
- Mappings:
Namespace Name Mixin selector named getBiomeDirectly
Lnet/minecraft/world/SpawnHelper;getBiomeDirectly(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/chunk/Chunk;)Lnet/minecraft/world/biome/Biome;
intermediary method_27822
Lnet/minecraft/class_1948;method_27822(Lnet/minecraft/class_2338;Lnet/minecraft/class_2791;)Lnet/minecraft/class_1959;
official a
Ldcl;a(Liz;Ldua;)Ldcz;
-
spawn
public static void spawn(ServerWorld world, WorldChunk chunk, SpawnHelper.Info info, boolean spawnAnimals, boolean spawnMonsters, boolean rareSpawn) - Mappings:
Namespace Name Mixin selector named spawn
Lnet/minecraft/world/SpawnHelper;spawn(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/WorldChunk;Lnet/minecraft/world/SpawnHelper$Info;ZZZ)V
intermediary method_27821
Lnet/minecraft/class_1948;method_27821(Lnet/minecraft/class_3218;Lnet/minecraft/class_2818;Lnet/minecraft/class_1948$class_5262;ZZZ)V
official a
Ldcl;a(Larf;Lduk;Ldcl$d;ZZZ)V
-
spawnEntitiesInChunk
public static void spawnEntitiesInChunk(SpawnGroup group, ServerWorld world, WorldChunk chunk, SpawnHelper.Checker checker, SpawnHelper.Runner runner) - Mappings:
Namespace Name Mixin selector named spawnEntitiesInChunk
Lnet/minecraft/world/SpawnHelper;spawnEntitiesInChunk(Lnet/minecraft/entity/SpawnGroup;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/WorldChunk;Lnet/minecraft/world/SpawnHelper$Checker;Lnet/minecraft/world/SpawnHelper$Runner;)V
intermediary method_8663
Lnet/minecraft/class_1948;method_8663(Lnet/minecraft/class_1311;Lnet/minecraft/class_3218;Lnet/minecraft/class_2818;Lnet/minecraft/class_1948$class_5261;Lnet/minecraft/class_1948$class_5259;)V
official a
Ldcl;a(Lbtu;Larf;Lduk;Ldcl$c;Ldcl$a;)V
-
spawnEntitiesInChunk
- Mappings:
Namespace Name Mixin selector named spawnEntitiesInChunk
Lnet/minecraft/world/SpawnHelper;spawnEntitiesInChunk(Lnet/minecraft/entity/SpawnGroup;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_35240
Lnet/minecraft/class_1948;method_35240(Lnet/minecraft/class_1311;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)V
official a
Ldcl;a(Lbtu;Larf;Liz;)V
-
spawnEntitiesInChunk
public static void spawnEntitiesInChunk(SpawnGroup group, ServerWorld world, Chunk chunk, BlockPos pos, SpawnHelper.Checker checker, SpawnHelper.Runner runner) - Mappings:
Namespace Name Mixin selector named spawnEntitiesInChunk
Lnet/minecraft/world/SpawnHelper;spawnEntitiesInChunk(Lnet/minecraft/entity/SpawnGroup;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/SpawnHelper$Checker;Lnet/minecraft/world/SpawnHelper$Runner;)V
intermediary method_24930
Lnet/minecraft/class_1948;method_24930(Lnet/minecraft/class_1311;Lnet/minecraft/class_3218;Lnet/minecraft/class_2791;Lnet/minecraft/class_2338;Lnet/minecraft/class_1948$class_5261;Lnet/minecraft/class_1948$class_5259;)V
official a
Ldcl;a(Lbtu;Larf;Ldua;Liz;Ldcl$c;Ldcl$a;)V
-
isAcceptableSpawnPosition
private static boolean isAcceptableSpawnPosition(ServerWorld world, Chunk chunk, BlockPos.Mutable pos, double squaredDistance) - Mappings:
Namespace Name Mixin selector named isAcceptableSpawnPosition
Lnet/minecraft/world/SpawnHelper;isAcceptableSpawnPosition(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos$Mutable;D)Z
intermediary method_24933
Lnet/minecraft/class_1948;method_24933(Lnet/minecraft/class_3218;Lnet/minecraft/class_2791;Lnet/minecraft/class_2338$class_2339;D)Z
official a
Ldcl;a(Larf;Ldua;Liz$a;D)Z
-
canSpawn
private static boolean canSpawn(ServerWorld world, SpawnGroup group, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnSettings.SpawnEntry spawnEntry, BlockPos.Mutable pos, double squaredDistance) - Mappings:
Namespace Name Mixin selector named canSpawn
Lnet/minecraft/world/SpawnHelper;canSpawn(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/SpawnGroup;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/biome/SpawnSettings$SpawnEntry;Lnet/minecraft/util/math/BlockPos$Mutable;D)Z
intermediary method_24934
Lnet/minecraft/class_1948;method_24934(Lnet/minecraft/class_3218;Lnet/minecraft/class_1311;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Lnet/minecraft/class_5483$class_1964;Lnet/minecraft/class_2338$class_2339;D)Z
official a
Ldcl;a(Larf;Lbtu;Ldct;Ldub;Lddl$c;Liz$a;D)Z
-
createMob
- Mappings:
Namespace Name Mixin selector named createMob
Lnet/minecraft/world/SpawnHelper;createMob(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/EntityType;)Lnet/minecraft/entity/mob/MobEntity;
intermediary method_24931
Lnet/minecraft/class_1948;method_24931(Lnet/minecraft/class_3218;Lnet/minecraft/class_1299;)Lnet/minecraft/class_1308;
official a
Ldcl;a(Larf;Lbtc;)Lbtt;
-
isValidSpawn
- Mappings:
Namespace Name Mixin selector named isValidSpawn
Lnet/minecraft/world/SpawnHelper;isValidSpawn(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;D)Z
intermediary method_24932
Lnet/minecraft/class_1948;method_24932(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;D)Z
official a
Ldcl;a(Larf;Lbtt;D)Z
-
pickRandomSpawnEntry
private static Optional<SpawnSettings.SpawnEntry> pickRandomSpawnEntry(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, Random random, BlockPos pos) - Mappings:
Namespace Name Mixin selector named pickRandomSpawnEntry
Lnet/minecraft/world/SpawnHelper;pickRandomSpawnEntry(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/entity/SpawnGroup;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Ljava/util/Optional;
intermediary method_8664
Lnet/minecraft/class_1948;method_8664(Lnet/minecraft/class_3218;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Lnet/minecraft/class_1311;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Ljava/util/Optional;
official a
Ldcl;a(Larf;Ldct;Ldub;Lbtu;Lazh;Liz;)Ljava/util/Optional;
-
containsSpawnEntry
private static boolean containsSpawnEntry(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, SpawnSettings.SpawnEntry spawnEntry, BlockPos pos) - Mappings:
Namespace Name Mixin selector named containsSpawnEntry
Lnet/minecraft/world/SpawnHelper;containsSpawnEntry(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/entity/SpawnGroup;Lnet/minecraft/world/biome/SpawnSettings$SpawnEntry;Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_8659
Lnet/minecraft/class_1948;method_8659(Lnet/minecraft/class_3218;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Lnet/minecraft/class_1311;Lnet/minecraft/class_5483$class_1964;Lnet/minecraft/class_2338;)Z
official a
Ldcl;a(Larf;Ldct;Ldub;Lbtu;Lddl$c;Liz;)Z
-
getSpawnEntries
private static Pool<SpawnSettings.SpawnEntry> getSpawnEntries(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, BlockPos pos, @Nullable @Nullable RegistryEntry<Biome> biomeEntry) - Mappings:
Namespace Name Mixin selector named getSpawnEntries
Lnet/minecraft/world/SpawnHelper;getSpawnEntries(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/entity/SpawnGroup;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/util/collection/Pool;
intermediary method_29950
Lnet/minecraft/class_1948;method_29950(Lnet/minecraft/class_3218;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Lnet/minecraft/class_1311;Lnet/minecraft/class_2338;Lnet/minecraft/class_6880;)Lnet/minecraft/class_6012;
official a
Ldcl;a(Larf;Ldct;Ldub;Lbtu;Liz;Lji;)Lbpk;
-
shouldUseNetherFortressSpawns
public static boolean shouldUseNetherFortressSpawns(BlockPos pos, ServerWorld world, SpawnGroup spawnGroup, StructureAccessor structureAccessor) - Mappings:
Namespace Name Mixin selector named shouldUseNetherFortressSpawns
Lnet/minecraft/world/SpawnHelper;shouldUseNetherFortressSpawns(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/SpawnGroup;Lnet/minecraft/world/gen/StructureAccessor;)Z
intermediary method_38091
Lnet/minecraft/class_1948;method_38091(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;Lnet/minecraft/class_1311;Lnet/minecraft/class_5138;)Z
official a
Ldcl;a(Liz;Larf;Lbtu;Ldct;)Z
-
getRandomPosInChunkSection
- Mappings:
Namespace Name Mixin selector named getRandomPosInChunkSection
Lnet/minecraft/world/SpawnHelper;getRandomPosInChunkSection(Lnet/minecraft/world/World;Lnet/minecraft/world/chunk/WorldChunk;)Lnet/minecraft/util/math/BlockPos;
intermediary method_8657
Lnet/minecraft/class_1948;method_8657(Lnet/minecraft/class_1937;Lnet/minecraft/class_2818;)Lnet/minecraft/class_2338;
official a
Ldcl;a(Ldca;Lduk;)Liz;
-
isClearForSpawn
public static boolean isClearForSpawn(BlockView blockView, BlockPos pos, BlockState state, FluidState fluidState, EntityType<?> entityType) - Mappings:
Namespace Name Mixin selector named isClearForSpawn
Lnet/minecraft/world/SpawnHelper;isClearForSpawn(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;Lnet/minecraft/entity/EntityType;)Z
intermediary method_8662
Lnet/minecraft/class_1948;method_8662(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;Lnet/minecraft/class_1299;)Z
official a
Ldcl;a(Ldbg;Liz;Ldse;Lenx;Lbtc;)Z
-
populateEntities
public static void populateEntities(ServerWorldAccess world, RegistryEntry<Biome> biomeEntry, ChunkPos chunkPos, Random random) - Mappings:
Namespace Name Mixin selector named populateEntities
Lnet/minecraft/world/SpawnHelper;populateEntities(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/util/math/random/Random;)V
intermediary method_8661
Lnet/minecraft/class_1948;method_8661(Lnet/minecraft/class_5425;Lnet/minecraft/class_6880;Lnet/minecraft/class_1923;Lnet/minecraft/class_5819;)V
official a
Ldcl;a(Ldcp;Lji;Ldbh;Lazh;)V
-
getEntitySpawnPos
- Mappings:
Namespace Name Mixin selector named getEntitySpawnPos
Lnet/minecraft/world/SpawnHelper;getEntitySpawnPos(Lnet/minecraft/world/WorldView;Lnet/minecraft/entity/EntityType;II)Lnet/minecraft/util/math/BlockPos;
intermediary method_8658
Lnet/minecraft/class_1948;method_8658(Lnet/minecraft/class_4538;Lnet/minecraft/class_1299;II)Lnet/minecraft/class_2338;
official a
Ldcl;a(Ldcd;Lbtc;II)Liz;
-