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.customBlockStateModelsThe field for thecustomBlockStateModelsrecord component.private final WeightedList<Variant> MultiVariant.variantsThe field for thevariantsrecord component.Methods in net.minecraft.client.data.models that return WeightedListModifier and TypeMethodDescriptionMultiVariant.customBlockStateModels()Returns the value of thecustomBlockStateModelsrecord component.MultiVariant.variants()Returns the value of thevariantsrecord component.Methods in net.minecraft.client.data.models with parameters of type WeightedListModifier and TypeMethodDescriptionstatic MultiVariantMultiVariant.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 aMultiVariantrecord 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.entriesThe field for theentriesrecord component.private final WeightedList<BlockStateModel> WeightedVariants.listMethods in net.minecraft.client.resources.model that return WeightedListModifier and TypeMethodDescriptionWeightedVariants.Unbaked.entries()Returns the value of theentriesrecord component.Constructors in net.minecraft.client.resources.model with parameters of type WeightedListModifierConstructorDescriptionUnbaked(WeightedList<BlockStateModel.Unbaked> entries) Creates an instance of aUnbakedrecord class. -
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 pElement) 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> pElementCodec) static <E> com.mojang.serialization.Codec<WeightedList<E>> WeightedList.codec(com.mojang.serialization.MapCodec<E> pElementCodec) static <E> com.mojang.serialization.Codec<WeightedList<E>> WeightedList.nonEmptyCodec(com.mojang.serialization.Codec<E> pElementCodec) static <E> com.mojang.serialization.Codec<WeightedList<E>> WeightedList.nonEmptyCodec(com.mojang.serialization.MapCodec<E> pElementCodec) 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.distributionConstructors 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.SheepColorProviderSheepColorSpawnRules.weighted(WeightedList<SheepColorSpawnRules.SheepColorProvider> pColors) -
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_CODECMethods in net.minecraft.world.level that return WeightedListModifier and TypeMethodDescriptionprivate static WeightedList<MobSpawnSettings.SpawnerData> NaturalSpawner.mobsAt(ServerLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, MobCategory pCetagory, BlockPos pPos, Holder<Biome> pBiome) -
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_LISTFields in net.minecraft.world.level.biome with type parameters of type WeightedListModifier and TypeFieldDescriptionprivate final Optional<WeightedList<Music>> BiomeSpecialEffects.backgroundMusicprotected Optional<WeightedList<Music>> BiomeSpecialEffects.Builder.backgroundMusicprivate final Map<MobCategory, WeightedList<MobSpawnSettings.SpawnerData>> MobSpawnSettings.spawnersMethods 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> pBackgroundMusic) Constructor parameters in net.minecraft.world.level.biome with type arguments of type WeightedListModifierConstructorDescription(package private)MobSpawnSettings(float pCreatureGenerationProbability, Map<MobCategory, WeightedList<MobSpawnSettings.SpawnerData>> pSpawners, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> pMobSpawnCosts) -
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.dispensingprivate WeightedList<ResourceKey<LootTable>> TrialSpawnerConfig.Builder.lootTablesToEjectprivate final WeightedList<ResourceKey<LootTable>> TrialSpawnerConfig.lootTablesToEjectThe field for thelootTablesToEjectrecord component.private WeightedList<SpawnData> TrialSpawnerConfig.Builder.spawnPotentialsDefinitionprivate final WeightedList<SpawnData> TrialSpawnerConfig.spawnPotentialsDefinitionThe field for thespawnPotentialsDefinitionrecord component.Methods in net.minecraft.world.level.block.entity.trialspawner that return WeightedListModifier and TypeMethodDescription(package private) WeightedList<ItemStack> TrialSpawnerData.getDispensingItems(ServerLevel pLevel, TrialSpawnerConfig pConfig, BlockPos pPos) TrialSpawnerConfig.lootTablesToEject()Returns the value of thelootTablesToEjectrecord component.TrialSpawnerConfig.spawnPotentialsDefinition()Returns the value of thespawnPotentialsDefinitionrecord component.Methods in net.minecraft.world.level.block.entity.trialspawner with parameters of type WeightedListModifier and TypeMethodDescriptionTrialSpawnerConfig.Builder.lootTablesToEject(WeightedList<ResourceKey<LootTable>> pLootTablesToEject) TrialSpawnerConfig.Builder.spawnPotentialsDefinition(WeightedList<SpawnData> pSpawnPotentialsDefinition) 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 aTrialSpawnerConfigrecord 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> pBiome, StructureManager pStructureManager, MobCategory pCategory, BlockPos pPos) -
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.weightedListMethods 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> pWeightedList) 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.distributionConstructors 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.spawnsThe field for thespawnsrecord component.Methods in net.minecraft.world.level.levelgen.structure that return WeightedListModifier and TypeMethodDescriptionStructureSpawnOverride.spawns()Returns the value of thespawnsrecord 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 aStructureSpawnOverriderecord 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.groupsThe field for thegroupsrecord component.private final WeightedList<ResourceKey<StructureTemplatePool>> RandomPoolAlias.targetsThe field for thetargetsrecord component.Methods in net.minecraft.world.level.levelgen.structure.pools.alias that return WeightedListModifier and TypeMethodDescriptionRandomGroupPoolAlias.groups()Returns the value of thegroupsrecord component.RandomPoolAlias.targets()Returns the value of thetargetsrecord component.Methods in net.minecraft.world.level.levelgen.structure.pools.alias with parameters of type WeightedListModifier and TypeMethodDescriptionstatic RandomPoolAliasPoolAliasBinding.random(String pAlias, WeightedList<String> pTargets) static RandomPoolAliasPoolAliasBinding.random(ResourceKey<StructureTemplatePool> pAlias, WeightedList<ResourceKey<StructureTemplatePool>> pTargets) static RandomGroupPoolAliasPoolAliasBinding.randomGroup(WeightedList<List<PoolAliasBinding>> pGroups) Constructors in net.minecraft.world.level.levelgen.structure.pools.alias with parameters of type WeightedListModifierConstructorDescriptionRandomGroupPoolAlias(WeightedList<List<PoolAliasBinding>> groups) Creates an instance of aRandomGroupPoolAliasrecord class.RandomPoolAlias(ResourceKey<StructureTemplatePool> alias, WeightedList<ResourceKey<StructureTemplatePool>> targets) Creates an instance of aRandomPoolAliasrecord 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.spawnersThe field for thespawnersrecord component.private final WeightedList<MobSpawnSettings.SpawnerData> StructureModifiers.AddSpawnsStructureModifier.spawnersThe field for thespawnersrecord component.Methods in net.neoforged.neoforge.common.world that return WeightedListModifier and TypeMethodDescriptionBiomeModifiers.AddSpawnsBiomeModifier.spawners()Returns the value of thespawnersrecord component.StructureModifiers.AddSpawnsStructureModifier.spawners()Returns the value of thespawnersrecord 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 aAddSpawnsBiomeModifierrecord class.AddSpawnsStructureModifier(HolderSet<Structure> structures, WeightedList<MobSpawnSettings.SpawnerData> spawners) Creates an instance of aAddSpawnsStructureModifierrecord class.privateStructureSpawnOverrideBuilder(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_SPAWNSMethods 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)