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_220444_, StructureManager p_220445_, ChunkGenerator p_220446_, MobCategory p_220447_, BlockPos p_220448_, Holder<Biome> p_220449_) -
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_223134_, StructureManager p_223135_, MobCategory p_223136_, BlockPos p_223137_) -
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.minecraft.world.level.levelgen.structure.structures
Modifier and TypeFieldDescriptionstatic final WeightedRandomList<MobSpawnSettings.SpawnerData>
NetherFortressStructure.FORTRESS_ENEMIES
-
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.level
ModifierConstructorDescriptionPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedRandomList<MobSpawnSettings.SpawnerData> oldList)