Uses of Class
net.minecraft.world.level.biome.MobSpawnSettings.SpawnerData
Package
Description
-
Uses of MobSpawnSettings.SpawnerData in net.minecraft.world.level
Modifier and TypeMethodDescriptionprivate static Optional<MobSpawnSettings.SpawnerData>
NaturalSpawner.getRandomSpawnMobAt
(ServerLevel p_151599_, StructureFeatureManager p_151600_, ChunkGenerator p_151601_, MobCategory p_151602_, Random p_151603_, BlockPos p_151604_) private static WeightedRandomList<MobSpawnSettings.SpawnerData>
NaturalSpawner.mobsAt
(ServerLevel p_204169_, StructureFeatureManager p_204170_, ChunkGenerator p_204171_, MobCategory p_204172_, BlockPos p_204173_, Holder<Biome> p_204174_) Modifier and TypeMethodDescriptionprivate static boolean
NaturalSpawner.canSpawnMobAt
(ServerLevel p_47004_, StructureFeatureManager p_47005_, ChunkGenerator p_47006_, MobCategory p_47007_, MobSpawnSettings.SpawnerData p_47008_, BlockPos p_47009_) private static boolean
NaturalSpawner.isValidSpawnPostitionForType
(ServerLevel p_46996_, MobCategory p_46997_, StructureFeatureManager p_46998_, ChunkGenerator p_46999_, MobSpawnSettings.SpawnerData p_47000_, BlockPos.MutableBlockPos p_47001_, double p_47002_) -
Uses of MobSpawnSettings.SpawnerData in net.minecraft.world.level.biome
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MobSpawnSettings.SpawnerData>
MobSpawnSettings.SpawnerData.CODEC
static final WeightedRandomList<MobSpawnSettings.SpawnerData>
MobSpawnSettings.EMPTY_MOB_LIST
protected final Map<MobCategory,
List<MobSpawnSettings.SpawnerData>> MobSpawnSettings.Builder.spawners
private final Map<MobCategory,
WeightedRandomList<MobSpawnSettings.SpawnerData>> MobSpawnSettings.spawners
Modifier and TypeMethodDescriptionMobSpawnSettings.Builder.addSpawn
(MobCategory p_48377_, MobSpawnSettings.SpawnerData p_48378_) ModifierConstructorDescription(package private)
MobSpawnSettings
(float p_196689_, Map<MobCategory, WeightedRandomList<MobSpawnSettings.SpawnerData>> p_196690_, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> p_196691_) -
Uses of MobSpawnSettings.SpawnerData in net.minecraft.world.level.chunk
Modifier and TypeMethodDescriptionChunkGenerator.getMobsAt
(Holder<Biome> p_204386_, StructureFeatureManager p_204387_, MobCategory p_204388_, BlockPos p_204389_) -
Uses of MobSpawnSettings.SpawnerData in net.minecraft.world.level.levelgen.feature
Modifier and TypeFieldDescriptionstatic final WeightedRandomList<MobSpawnSettings.SpawnerData>
NetherFortressFeature.FORTRESS_ENEMIES
-
Uses of MobSpawnSettings.SpawnerData in net.minecraft.world.level.levelgen.structure
Modifier and TypeFieldDescriptionprivate final WeightedRandomList<MobSpawnSettings.SpawnerData>
StructureSpawnOverride.spawns
The field for thespawns
record component.Modifier and TypeMethodDescriptionStructureSpawnOverride.spawns()
Returns the value of thespawns
record component.ModifierConstructorDescriptionStructureSpawnOverride
(StructureSpawnOverride.BoundingBoxType boundingBox, WeightedRandomList<MobSpawnSettings.SpawnerData> spawns) Creates an instance of aStructureSpawnOverride
record class. -
Uses of MobSpawnSettings.SpawnerData in net.minecraftforge.common.world
-
Uses of MobSpawnSettings.SpawnerData in net.minecraftforge.event
Modifier and TypeMethodDescriptionForgeEventFactory.getPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList) Modifier and TypeMethodDescriptionForgeEventFactory.getPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList) -
Uses of MobSpawnSettings.SpawnerData in net.minecraftforge.event.world
Modifier and TypeFieldDescriptionprivate final Map<MobCategory,
List<MobSpawnSettings.SpawnerData>> StructureSpawnListGatherEvent.entitySpawns
private final Map<MobCategory,
List<MobSpawnSettings.SpawnerData>> StructureSpawnListGatherEvent.entitySpawnsUnmodifiable
private final Map<MobCategory,
List<MobSpawnSettings.SpawnerData>> StructureSpawnListGatherEvent.entitySpawnsUnmodifiableLists
private final List<MobSpawnSettings.SpawnerData>
WorldEvent.PotentialSpawns.list
private final List<MobSpawnSettings.SpawnerData>
WorldEvent.PotentialSpawns.view
Modifier and TypeMethodDescriptionStructureSpawnListGatherEvent.getEntitySpawns()
Gets an unmodifiable view of the map of spawns based on entity classification that is used to fill in the various spawn lists for the structure.StructureSpawnListGatherEvent.getEntitySpawns
(MobCategory classification) Gets an unmodifiable view of the the list representing the entity spawns for the given classification.private List<MobSpawnSettings.SpawnerData>
StructureSpawnListGatherEvent.getOrCreateEntitySpawns
(MobCategory classification) Gets the internal spawn list for a given entity classification, or adds one if needed.WorldEvent.PotentialSpawns.getSpawnerDataList()
Returns the list of mobs that can potentially be spawned..Modifier and TypeMethodDescriptionvoid
StructureSpawnListGatherEvent.addEntitySpawn
(MobCategory classification, MobSpawnSettings.SpawnerData spawner) Adds a spawn to the list of spawns for the given classification.void
WorldEvent.PotentialSpawns.addSpawnerData
(MobSpawnSettings.SpawnerData data) Appends a SpawnerData entry to the spawn list.void
StructureSpawnListGatherEvent.removeEntitySpawn
(MobCategory classification, MobSpawnSettings.SpawnerData spawner) Removes a spawn from the list of spawns for the given classification.boolean
WorldEvent.PotentialSpawns.removeSpawnerData
(MobSpawnSettings.SpawnerData data) Removes a SpawnerData entry from the spawn list.Modifier and TypeMethodDescriptionvoid
StructureSpawnListGatherEvent.addEntitySpawns
(MobCategory classification, List<MobSpawnSettings.SpawnerData> spawners) Adds spawns to the list of spawns for the given classification.ModifierConstructorDescriptionPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList)