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_220430_, StructureManager p_220431_, ChunkGenerator p_220432_, MobCategory p_220433_, RandomSource p_220434_, BlockPos p_220435_) private static WeightedRandomList
<MobSpawnSettings.SpawnerData> NaturalSpawner.mobsAt
(ServerLevel p_220444_, StructureManager p_220445_, ChunkGenerator p_220446_, MobCategory p_220447_, BlockPos p_220448_, Holder<Biome> p_220449_) Modifier and TypeMethodDescriptionprivate static boolean
NaturalSpawner.canSpawnMobAt
(ServerLevel p_220437_, StructureManager p_220438_, ChunkGenerator p_220439_, MobCategory p_220440_, MobSpawnSettings.SpawnerData p_220441_, BlockPos p_220442_) private static boolean
NaturalSpawner.isValidSpawnPostitionForType
(ServerLevel p_220422_, MobCategory p_220423_, StructureManager p_220424_, ChunkGenerator p_220425_, MobSpawnSettings.SpawnerData p_220426_, BlockPos.MutableBlockPos p_220427_, double p_220428_) -
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_223134_, StructureManager p_223135_, MobCategory p_223136_, BlockPos p_223137_) -
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.minecraft.world.level.levelgen.structure.structures
Modifier and TypeFieldDescriptionstatic final WeightedRandomList
<MobSpawnSettings.SpawnerData> NetherFortressStructure.FORTRESS_ENEMIES
-
Uses of MobSpawnSettings.SpawnerData in net.neoforged.neoforge.common.world
Modifier and TypeFieldDescriptionprivate final List
<MobSpawnSettings.SpawnerData> BiomeModifiers.AddSpawnsBiomeModifier.spawners
The field for thespawners
record component.private final List
<MobSpawnSettings.SpawnerData> StructureModifiers.AddSpawnsStructureModifier.spawners
The field for thespawners
record component.private final List
<MobSpawnSettings.SpawnerData> StructureSettingsBuilder.StructureSpawnOverrideBuilder.spawns
private final List
<MobSpawnSettings.SpawnerData> StructureSettingsBuilder.StructureSpawnOverrideBuilder.spawnsView
Modifier and TypeMethodDescriptionMobSpawnSettingsBuilder.getSpawner
(MobCategory type) StructureSettingsBuilder.StructureSpawnOverrideBuilder.getSpawns()
Unmodifiable view of the possible spawns.BiomeModifiers.AddSpawnsBiomeModifier.spawners()
Returns the value of thespawners
record component.StructureModifiers.AddSpawnsStructureModifier.spawners()
Returns the value of thespawners
record component.Modifier and TypeMethodDescriptionvoid
StructureSettingsBuilder.StructureSpawnOverrideBuilder.addSpawn
(MobSpawnSettings.SpawnerData spawn) Adds a spawn to the overrides.void
StructureSettingsBuilder.StructureSpawnOverrideBuilder.removeSpawn
(MobSpawnSettings.SpawnerData spawn) Removes a given spawn from the list of overrides.BiomeModifiers.AddSpawnsBiomeModifier.singleSpawn
(HolderSet<Biome> biomes, MobSpawnSettings.SpawnerData spawner) Convenience method for using a single MobSpawnSettings.SpawnerDatas.StructureModifiers.AddSpawnsStructureModifier.singleSpawn
(HolderSet<Structure> structures, MobSpawnSettings.SpawnerData spawner) Convenience method for using a singleMobSpawnSettings.SpawnerData
.Modifier and TypeMethodDescriptionvoid
StructureSettingsBuilder.StructureSpawnOverrideBuilder.removeSpawns
(Predicate<MobSpawnSettings.SpawnerData> spawnPredicate) ModifierConstructorDescriptionAddSpawnsBiomeModifier
(HolderSet<Biome> biomes, List<MobSpawnSettings.SpawnerData> spawners) Creates an instance of aAddSpawnsBiomeModifier
record class.AddSpawnsStructureModifier
(HolderSet<Structure> structures, List<MobSpawnSettings.SpawnerData> spawners) Creates an instance of aAddSpawnsStructureModifier
record class.private
StructureSpawnOverrideBuilder
(StructureSpawnOverride.BoundingBoxType boundingBox, List<MobSpawnSettings.SpawnerData> spawns) -
Uses of MobSpawnSettings.SpawnerData in net.neoforged.neoforge.event
Modifier and TypeFieldDescriptionprivate static final WeightedRandomList
<MobSpawnSettings.SpawnerData> EventHooks.NO_SPAWNS
Modifier and TypeMethodDescriptionEventHooks.getPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList) Modifier and TypeMethodDescriptionEventHooks.getPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList) -
Uses of MobSpawnSettings.SpawnerData in net.neoforged.neoforge.event.level
Modifier and TypeFieldDescriptionprivate @Nullable List
<MobSpawnSettings.SpawnerData> LevelEvent.PotentialSpawns.list
private List
<MobSpawnSettings.SpawnerData> LevelEvent.PotentialSpawns.view
Modifier and TypeMethodDescriptionLevelEvent.PotentialSpawns.getSpawnerDataList()
Returns the list of mobs that can potentially be spawned..Modifier and TypeMethodDescriptionvoid
LevelEvent.PotentialSpawns.addSpawnerData
(MobSpawnSettings.SpawnerData data) Appends a SpawnerData entry to the spawn list.boolean
LevelEvent.PotentialSpawns.removeSpawnerData
(MobSpawnSettings.SpawnerData data) Removes a SpawnerData entry from the spawn list.ModifierConstructorDescriptionPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList) -
Uses of MobSpawnSettings.SpawnerData in net.neoforged.neoforge.oldtest.world
Modifier and TypeFieldDescriptionprivate final MobSpawnSettings.SpawnerData
StructureModifierTest.TestModifier.spawn
The field for thespawn
record component.Modifier and TypeMethodDescriptionStructureModifierTest.TestModifier.spawn()
Returns the value of thespawn
record component.ModifierConstructorDescriptionTestModifier
(HolderSet<Structure> structures, MobCategory category, MobSpawnSettings.SpawnerData spawn) Creates an instance of aTestModifier
record class.