Uses of Class
net.minecraft.util.random.WeightedList
Packages that use WeightedList
Package
Description
-
Uses of WeightedList in net.minecraft.client.data.models
Fields in net.minecraft.client.data.models declared as WeightedListModifier and TypeFieldDescriptionprivate final WeightedList
<CustomBlockStateModelBuilder> MultiVariant.customBlockStateModels
The field for thecustomBlockStateModels
record component.private final WeightedList
<Variant> MultiVariant.variants
The field for thevariants
record component.Methods in net.minecraft.client.data.models that return WeightedListModifier and TypeMethodDescriptionMultiVariant.customBlockStateModels()
Returns the value of thecustomBlockStateModels
record component.MultiVariant.variants()
Returns the value of thevariants
record component.Methods in net.minecraft.client.data.models with parameters of type WeightedListModifier and TypeMethodDescriptionstatic MultiVariant
MultiVariant.of
(WeightedList<CustomBlockStateModelBuilder> customBlockStateModels) Constructors in net.minecraft.client.data.models with parameters of type WeightedListModifierConstructorDescriptionMultiVariant
(WeightedList<Variant> variants) MultiVariant
(WeightedList<Variant> variants, WeightedList<CustomBlockStateModelBuilder> customBlockStateModels) Creates an instance of aMultiVariant
record class. -
Uses of WeightedList in net.minecraft.client.resources.model
Fields in net.minecraft.client.resources.model declared as WeightedListModifier and TypeFieldDescriptionprivate final WeightedList
<BlockStateModel.Unbaked> WeightedVariants.Unbaked.entries
The field for theentries
record component.private final WeightedList
<BlockStateModel> WeightedVariants.list
Methods in net.minecraft.client.resources.model that return WeightedListModifier and TypeMethodDescriptionWeightedVariants.Unbaked.entries()
Returns the value of theentries
record component.Constructors in net.minecraft.client.resources.model with parameters of type WeightedListModifierConstructorDescriptionUnbaked
(WeightedList<BlockStateModel.Unbaked> entries) Creates an instance of aUnbaked
record class.WeightedVariants
(WeightedList<BlockStateModel> p_410272_) -
Uses of WeightedList in net.minecraft.util.random
Methods in net.minecraft.util.random that return WeightedListModifier and TypeMethodDescriptionWeightedList.Builder.build()
<T> WeightedList
<T> static <E> WeightedList
<E> WeightedList.of()
static <E> WeightedList
<E> WeightedList.of
(E p_394135_) static <E> WeightedList
<E> static <E> WeightedList
<E> Methods in net.minecraft.util.random that return types with arguments of type WeightedListModifier and TypeMethodDescriptionstatic <E> com.mojang.serialization.Codec
<WeightedList<E>> WeightedList.codec
(com.mojang.serialization.Codec<E> p_394327_) static <E> com.mojang.serialization.Codec
<WeightedList<E>> WeightedList.codec
(com.mojang.serialization.MapCodec<E> p_393650_) static <E> com.mojang.serialization.Codec
<WeightedList<E>> WeightedList.nonEmptyCodec
(com.mojang.serialization.Codec<E> p_393785_) static <E> com.mojang.serialization.Codec
<WeightedList<E>> WeightedList.nonEmptyCodec
(com.mojang.serialization.MapCodec<E> p_394431_) Methods in net.minecraft.util.random with parameters of type WeightedList -
Uses of WeightedList in net.minecraft.util.valueproviders
Fields in net.minecraft.util.valueproviders declared as WeightedListModifier and TypeFieldDescriptionprivate final WeightedList
<IntProvider> WeightedListInt.distribution
Constructors in net.minecraft.util.valueproviders with parameters of type WeightedList -
Uses of WeightedList in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type WeightedListModifier and TypeMethodDescriptionprivate static SheepColorSpawnRules.SheepColorProvider
SheepColorSpawnRules.weighted
(WeightedList<SheepColorSpawnRules.SheepColorProvider> p_405728_) -
Uses of WeightedList in net.minecraft.world.level
Fields in net.minecraft.world.level declared as WeightedListFields in net.minecraft.world.level with type parameters of type WeightedListModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<WeightedList<SpawnData>> SpawnData.LIST_CODEC
Methods in net.minecraft.world.level that return WeightedListModifier and TypeMethodDescriptionprivate static WeightedList
<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 WeightedList in net.minecraft.world.level.biome
Fields in net.minecraft.world.level.biome declared as WeightedListModifier and TypeFieldDescriptionstatic final WeightedList
<MobSpawnSettings.SpawnerData> MobSpawnSettings.EMPTY_MOB_LIST
Fields in net.minecraft.world.level.biome with type parameters of type WeightedListModifier and TypeFieldDescriptionprivate final Optional
<WeightedList<Music>> BiomeSpecialEffects.backgroundMusic
protected Optional
<WeightedList<Music>> BiomeSpecialEffects.Builder.backgroundMusic
private final Map
<MobCategory, WeightedList<MobSpawnSettings.SpawnerData>> MobSpawnSettings.spawners
Methods in net.minecraft.world.level.biome that return WeightedListMethods in net.minecraft.world.level.biome that return types with arguments of type WeightedListModifier and TypeMethodDescriptionBiome.getBackgroundMusic()
BiomeSpecialEffects.getBackgroundMusic()
Methods in net.minecraft.world.level.biome with parameters of type WeightedListModifier and TypeMethodDescriptionBiomeSpecialEffects.Builder.backgroundMusic
(WeightedList<Music> p_394238_) Constructor parameters in net.minecraft.world.level.biome with type arguments of type WeightedListModifierConstructorDescription(package private)
MobSpawnSettings
(float p_196689_, Map<MobCategory, WeightedList<MobSpawnSettings.SpawnerData>> p_196690_, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> p_196691_) -
Uses of WeightedList in net.minecraft.world.level.block.entity.trialspawner
Fields in net.minecraft.world.level.block.entity.trialspawner declared as WeightedListModifier and TypeFieldDescriptionprivate WeightedList
<ItemStack> TrialSpawnerData.dispensing
private WeightedList
<ResourceKey<LootTable>> TrialSpawnerConfig.Builder.lootTablesToEject
private final WeightedList
<ResourceKey<LootTable>> TrialSpawnerConfig.lootTablesToEject
The field for thelootTablesToEject
record component.private WeightedList
<SpawnData> TrialSpawnerConfig.Builder.spawnPotentialsDefinition
private final WeightedList
<SpawnData> TrialSpawnerConfig.spawnPotentialsDefinition
The field for thespawnPotentialsDefinition
record component.Methods in net.minecraft.world.level.block.entity.trialspawner that return WeightedListModifier and TypeMethodDescription(package private) WeightedList
<ItemStack> TrialSpawnerData.getDispensingItems
(ServerLevel p_338857_, TrialSpawnerConfig p_338213_, BlockPos p_338577_) TrialSpawnerConfig.lootTablesToEject()
Returns the value of thelootTablesToEject
record component.TrialSpawnerConfig.spawnPotentialsDefinition()
Returns the value of thespawnPotentialsDefinition
record component.Methods in net.minecraft.world.level.block.entity.trialspawner with parameters of type WeightedListModifier and TypeMethodDescriptionTrialSpawnerConfig.Builder.lootTablesToEject
(WeightedList<ResourceKey<LootTable>> p_394126_) TrialSpawnerConfig.Builder.spawnPotentialsDefinition
(WeightedList<SpawnData> p_393494_) Constructors in net.minecraft.world.level.block.entity.trialspawner with parameters of type WeightedListModifierConstructorDescriptionTrialSpawnerConfig
(int spawnRange, float totalMobs, float simultaneousMobs, float totalMobsAddedPerPlayer, float simultaneousMobsAddedPerPlayer, int ticksBetweenSpawn, WeightedList<SpawnData> spawnPotentialsDefinition, WeightedList<ResourceKey<LootTable>> lootTablesToEject, ResourceKey<LootTable> itemsToDropWhenOminous) Creates an instance of aTrialSpawnerConfig
record class. -
Uses of WeightedList in net.minecraft.world.level.chunk
Methods in net.minecraft.world.level.chunk that return WeightedListModifier and TypeMethodDescriptionChunkGenerator.getMobsAt
(Holder<Biome> p_223134_, StructureManager p_223135_, MobCategory p_223136_, BlockPos p_223137_) -
Uses of WeightedList in net.minecraft.world.level.levelgen.feature.stateproviders
Fields in net.minecraft.world.level.levelgen.feature.stateproviders declared as WeightedListModifier and TypeFieldDescriptionprivate final WeightedList
<BlockState> WeightedStateProvider.weightedList
Methods in net.minecraft.world.level.levelgen.feature.stateproviders with parameters of type WeightedListModifier and TypeMethodDescriptionprivate static com.mojang.serialization.DataResult
<WeightedStateProvider> WeightedStateProvider.create
(WeightedList<BlockState> p_394378_) Constructors in net.minecraft.world.level.levelgen.feature.stateproviders with parameters of type WeightedList -
Uses of WeightedList in net.minecraft.world.level.levelgen.heightproviders
Fields in net.minecraft.world.level.levelgen.heightproviders declared as WeightedListModifier and TypeFieldDescriptionprivate final WeightedList
<HeightProvider> WeightedListHeight.distribution
Constructors in net.minecraft.world.level.levelgen.heightproviders with parameters of type WeightedList -
Uses of WeightedList in net.minecraft.world.level.levelgen.structure
Fields in net.minecraft.world.level.levelgen.structure declared as WeightedListModifier and TypeFieldDescriptionprivate final WeightedList
<MobSpawnSettings.SpawnerData> StructureSpawnOverride.spawns
The field for thespawns
record component.Methods in net.minecraft.world.level.levelgen.structure that return WeightedListModifier and TypeMethodDescriptionStructureSpawnOverride.spawns()
Returns the value of thespawns
record component.Constructors in net.minecraft.world.level.levelgen.structure with parameters of type WeightedListModifierConstructorDescriptionStructureSpawnOverride
(StructureSpawnOverride.BoundingBoxType boundingBox, WeightedList<MobSpawnSettings.SpawnerData> spawns) Creates an instance of aStructureSpawnOverride
record class. -
Uses of WeightedList in net.minecraft.world.level.levelgen.structure.pools.alias
Fields in net.minecraft.world.level.levelgen.structure.pools.alias declared as WeightedListModifier and TypeFieldDescriptionprivate final WeightedList
<List<PoolAliasBinding>> RandomGroupPoolAlias.groups
The field for thegroups
record component.private final WeightedList
<ResourceKey<StructureTemplatePool>> RandomPoolAlias.targets
The field for thetargets
record component.Methods in net.minecraft.world.level.levelgen.structure.pools.alias that return WeightedListModifier and TypeMethodDescriptionRandomGroupPoolAlias.groups()
Returns the value of thegroups
record component.RandomPoolAlias.targets()
Returns the value of thetargets
record component.Methods in net.minecraft.world.level.levelgen.structure.pools.alias with parameters of type WeightedListModifier and TypeMethodDescriptionstatic RandomPoolAlias
PoolAliasBinding.random
(String p_405266_, WeightedList<String> p_393660_) static RandomPoolAlias
PoolAliasBinding.random
(ResourceKey<StructureTemplatePool> p_405147_, WeightedList<ResourceKey<StructureTemplatePool>> p_393832_) static RandomGroupPoolAlias
PoolAliasBinding.randomGroup
(WeightedList<List<PoolAliasBinding>> p_393469_) Constructors in net.minecraft.world.level.levelgen.structure.pools.alias with parameters of type WeightedListModifierConstructorDescriptionRandomGroupPoolAlias
(WeightedList<List<PoolAliasBinding>> groups) Creates an instance of aRandomGroupPoolAlias
record class.RandomPoolAlias
(ResourceKey<StructureTemplatePool> alias, WeightedList<ResourceKey<StructureTemplatePool>> targets) Creates an instance of aRandomPoolAlias
record class. -
Uses of WeightedList in net.minecraft.world.level.levelgen.structure.structures
Fields in net.minecraft.world.level.levelgen.structure.structures declared as WeightedListModifier and TypeFieldDescriptionstatic final WeightedList
<MobSpawnSettings.SpawnerData> NetherFortressStructure.FORTRESS_ENEMIES
-
Uses of WeightedList in net.neoforged.neoforge.common
Fields in net.neoforged.neoforge.common declared as WeightedListModifier and TypeFieldDescriptionprivate static WeightedList
<EntityType<?>> MonsterRoomHooks.monsterRoomMobs
-
Uses of WeightedList in net.neoforged.neoforge.common.world
Fields in net.neoforged.neoforge.common.world declared as WeightedListModifier and TypeFieldDescriptionprivate final WeightedList
<MobSpawnSettings.SpawnerData> BiomeModifiers.AddSpawnsBiomeModifier.spawners
The field for thespawners
record component.private final WeightedList
<MobSpawnSettings.SpawnerData> StructureModifiers.AddSpawnsStructureModifier.spawners
The field for thespawners
record component.Methods in net.neoforged.neoforge.common.world that return WeightedListModifier and TypeMethodDescriptionBiomeModifiers.AddSpawnsBiomeModifier.spawners()
Returns the value of thespawners
record component.StructureModifiers.AddSpawnsStructureModifier.spawners()
Returns the value of thespawners
record component.Methods in net.neoforged.neoforge.common.world that return types with arguments of type WeightedListConstructors in net.neoforged.neoforge.common.world with parameters of type WeightedListModifierConstructorDescriptionAddSpawnsBiomeModifier
(HolderSet<Biome> biomes, WeightedList<MobSpawnSettings.SpawnerData> spawners) Creates an instance of aAddSpawnsBiomeModifier
record class.AddSpawnsStructureModifier
(HolderSet<Structure> structures, WeightedList<MobSpawnSettings.SpawnerData> spawners) Creates an instance of aAddSpawnsStructureModifier
record class.private
StructureSpawnOverrideBuilder
(StructureSpawnOverride.BoundingBoxType boundingBox, WeightedList<MobSpawnSettings.SpawnerData> spawns) -
Uses of WeightedList in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event declared as WeightedListModifier and TypeFieldDescriptionprivate static final WeightedList
<MobSpawnSettings.SpawnerData> EventHooks.NO_SPAWNS
Methods in net.neoforged.neoforge.event that return WeightedListModifier and TypeMethodDescriptionEventHooks.getPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedList<MobSpawnSettings.SpawnerData> oldList) Methods in net.neoforged.neoforge.event with parameters of type WeightedListModifier and TypeMethodDescriptionEventHooks.getPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedList<MobSpawnSettings.SpawnerData> oldList) -
Uses of WeightedList in net.neoforged.neoforge.event.level
Constructors in net.neoforged.neoforge.event.level with parameters of type WeightedListModifierConstructorDescriptionPotentialSpawns
(LevelAccessor level, MobCategory category, BlockPos pos, WeightedList<MobSpawnSettings.SpawnerData> oldList)