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 TypeFieldDescriptionprivate static WeightedRandomList<SpawnData>
BaseSpawner.EMPTY_POTENTIALS
private WeightedRandomList<SpawnData>
BaseSpawner.spawnPotentials
Modifier and TypeMethodDescriptionprivate static WeightedRandomList<MobSpawnSettings.SpawnerData>
NaturalSpawner.mobsAt(ServerLevel p_151592_, StructureFeatureManager p_151593_, ChunkGenerator p_151594_, MobCategory p_151595_, BlockPos p_151596_, Biome p_151597_)
-
Uses of WeightedRandomList in net.minecraft.world.level.biome
ModifierConstructorDescription(package private)
MobSpawnSettings(float p_48334_, Map<MobCategory,WeightedRandomList<MobSpawnSettings.SpawnerData>> p_48335_, Map<EntityType<?>,MobSpawnSettings.MobSpawnCost> p_48336_, boolean p_48337_)
-
Uses of WeightedRandomList in net.minecraft.world.level.chunk
Modifier and TypeMethodDescriptionChunkGenerator.getMobsAt(Biome p_156158_, StructureFeatureManager p_156159_, MobCategory p_156160_, BlockPos p_156161_)
-
Uses of WeightedRandomList in net.minecraft.world.level.levelgen
Modifier and TypeMethodDescriptionNoiseBasedChunkGenerator.getMobsAt(Biome p_158433_, StructureFeatureManager p_158434_, MobCategory p_158435_, BlockPos p_158436_)
-
Uses of WeightedRandomList in net.minecraft.world.level.levelgen.feature
Modifier and TypeFieldDescriptionprivate static WeightedRandomList<MobSpawnSettings.SpawnerData>
NetherFortressFeature.FORTRESS_ENEMIES
private static WeightedRandomList<MobSpawnSettings.SpawnerData>
OceanMonumentFeature.MONUMENT_ENEMIES
private static WeightedRandomList<MobSpawnSettings.SpawnerData>
PillagerOutpostFeature.OUTPOST_ENEMIES
private static WeightedRandomList<MobSpawnSettings.SpawnerData>
SwamplandHutFeature.SWAMPHUT_ANIMALS
private static WeightedRandomList<MobSpawnSettings.SpawnerData>
SwamplandHutFeature.SWAMPHUT_ENEMIES
Modifier and TypeMethodDescriptionStructureFeature.getSpawnList(MobCategory classification)
StructureFeature.getSpecialAnimals()
StructureFeature.getSpecialEnemies()
StructureFeature.getSpecialUndergroundWaterAnimals()
-
Uses of WeightedRandomList in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptionIForgeStructureFeature.getSpawnList(MobCategory classification)
Helper method to get the list of entity spawns for this structure for the given classification. -
Uses of WeightedRandomList in net.minecraftforge.common.world
Modifier and TypeMethodDescriptionStructureSpawnManager.getSpawnList(StructureFeature<?> structure, MobCategory classification)
Gets the entity spawn lists for entities of a given classification for a given structure.StructureSpawnManager.getStructureSpawns(StructureFeatureManager structureManager, MobCategory classification, BlockPos pos)
Looks up if a given position is within a structure and returns any entity spawns that structure has for the given classification, or null if none are found.ModifierConstructorDescriptionprivate
StructureSpawnInfo(com.google.common.collect.ImmutableMap<MobCategory,WeightedRandomList<MobSpawnSettings.SpawnerData>> spawns, boolean insideOnly)