Uses of Class
net.minecraft.util.random.WeightedRandomList
Package
Description
-
Uses of WeightedRandomList in net.minecraft.util.random
Modifier and TypeMethodDescriptionstatic <E extends WeightedEntry>
WeightedRandomList<E>WeightedRandomList.create()
static <E extends WeightedEntry>
WeightedRandomList<E>WeightedRandomList.create
(E... p_146331_) static <E extends WeightedEntry>
WeightedRandomList<E>Modifier and TypeMethodDescriptionstatic <E extends WeightedEntry>
com.mojang.serialization.Codec<WeightedRandomList<E>>WeightedRandomList.codec
(com.mojang.serialization.Codec<E> p_146334_) -
Uses of WeightedRandomList in net.minecraft.world.level
Modifier and TypeMethodDescriptionprivate 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_) -
Uses of WeightedRandomList in net.minecraft.world.level.biome
Modifier and TypeFieldDescriptionstatic final WeightedRandomList<MobSpawnSettings.SpawnerData>
MobSpawnSettings.EMPTY_MOB_LIST
Modifier and TypeFieldDescriptionprivate final Map<MobCategory,
WeightedRandomList<MobSpawnSettings.SpawnerData>> MobSpawnSettings.spawners
ModifierConstructorDescription(package private)
MobSpawnSettings
(float p_196689_, Map<MobCategory, WeightedRandomList<MobSpawnSettings.SpawnerData>> p_196690_, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> p_196691_) -
Uses of WeightedRandomList 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 WeightedRandomList in net.minecraft.world.level.levelgen.feature
Modifier and TypeFieldDescriptionstatic final WeightedRandomList<MobSpawnSettings.SpawnerData>
NetherFortressFeature.FORTRESS_ENEMIES
-
Uses of WeightedRandomList 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 WeightedRandomList 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 WeightedRandomList in net.minecraftforge.event.world
ModifierConstructorDescriptionPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList)