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.multiplayer
Fields in net.minecraft.client.multiplayer declared as WeightedListModifier and TypeFieldDescriptionprivate final WeightedList<ExplosionParticleInfo> ClientExplosionTracker.ExplosionInfo.blockParticlesThe field for theblockParticlesrecord component.Methods in net.minecraft.client.multiplayer that return WeightedListModifier and TypeMethodDescriptionClientExplosionTracker.ExplosionInfo.blockParticles()Returns the value of theblockParticlesrecord component.Methods in net.minecraft.client.multiplayer with parameters of type WeightedListModifier and TypeMethodDescriptionvoidClientLevel.explode(Entity p_363686_, DamageSource p_365268_, ExplosionDamageCalculator p_363795_, double p_360494_, double p_360591_, double p_364949_, float p_361233_, boolean p_364900_, Level.ExplosionInteraction p_365033_, ParticleOptions p_361889_, ParticleOptions p_361473_, WeightedList<ExplosionParticleInfo> p_437196_, Holder<SoundEvent> p_362359_) voidClientExplosionTracker.track(Vec3 center, float radius, int blockCount, WeightedList<ExplosionParticleInfo> blockParticles) voidClientLevel.trackExplosionEffects(Vec3 center, float radius, int blockCount, WeightedList<ExplosionParticleInfo> blockParticles) Constructors in net.minecraft.client.multiplayer with parameters of type WeightedListModifierConstructorDescription(package private)ExplosionInfo(Vec3 center, float radius, int blockCount, WeightedList<ExplosionParticleInfo> blockParticles) Creates an instance of aExplosionInforecord 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.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as WeightedListModifier and TypeFieldDescriptionprivate final WeightedList<ExplosionParticleInfo> ClientboundExplodePacket.blockParticlesThe field for theblockParticlesrecord component.Methods in net.minecraft.network.protocol.game that return WeightedListModifier and TypeMethodDescriptionClientboundExplodePacket.blockParticles()Returns the value of theblockParticlesrecord component.Constructors in net.minecraft.network.protocol.game with parameters of type WeightedListModifierConstructorDescriptionClientboundExplodePacket(Vec3 center, float radius, int blockCount, Optional<Vec3> playerKnockback, ParticleOptions explosionParticle, Holder<SoundEvent> explosionSound, WeightedList<ExplosionParticleInfo> blockParticles) Creates an instance of aClientboundExplodePacketrecord class. -
Uses of WeightedList in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type WeightedListModifier and TypeMethodDescriptionvoidServerLevel.explode(Entity p_256039_, DamageSource p_255778_, ExplosionDamageCalculator p_256002_, double p_256067_, double p_256370_, double p_256153_, float p_256045_, boolean p_255686_, Level.ExplosionInteraction p_255827_, ParticleOptions p_312436_, ParticleOptions p_312391_, WeightedList<ExplosionParticleInfo> p_437303_, Holder<SoundEvent> p_320497_) -
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 element) 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> elementCodec) static <E> com.mojang.serialization.Codec<WeightedList<E>> WeightedList.codec(com.mojang.serialization.MapCodec<E> elementCodec) static <E> com.mojang.serialization.Codec<WeightedList<E>> WeightedList.nonEmptyCodec(com.mojang.serialization.Codec<E> elementCodec) static <E> com.mojang.serialization.Codec<WeightedList<E>> WeightedList.nonEmptyCodec(com.mojang.serialization.MapCodec<E> elementCodec) static <E,B extends io.netty.buffer.ByteBuf>
StreamCodec<B, WeightedList<E>> WeightedList.streamCodec(StreamCodec<B, E> elementCodec) 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> colors) -
Uses of WeightedList in net.minecraft.world.item.enchantment.effects
Fields in net.minecraft.world.item.enchantment.effects declared as WeightedListModifier and TypeFieldDescriptionprivate final WeightedList<ExplosionParticleInfo> ExplodeEffect.blockParticlesThe field for theblockParticlesrecord component.Methods in net.minecraft.world.item.enchantment.effects that return WeightedListModifier and TypeMethodDescriptionExplodeEffect.blockParticles()Returns the value of theblockParticlesrecord component.Constructors in net.minecraft.world.item.enchantment.effects with parameters of type WeightedListModifierConstructorDescriptionExplodeEffect(boolean attributeToUser, Optional<Holder<DamageType>> damageType, Optional<LevelBasedValue> knockbackMultiplier, Optional<HolderSet<Block>> immuneBlocks, Vec3 offset, LevelBasedValue radius, boolean createFire, Level.ExplosionInteraction blockInteraction, ParticleOptions smallParticle, ParticleOptions largeParticle, WeightedList<ExplosionParticleInfo> blockParticles, Holder<SoundEvent> sound) Creates an instance of aExplodeEffectrecord class. -
Uses of WeightedList in net.minecraft.world.level
Fields in net.minecraft.world.level declared as WeightedListModifier and TypeFieldDescriptionprivate static final WeightedList<ExplosionParticleInfo> private WeightedList<SpawnData> BaseSpawner.spawnPotentialsFields 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 level, StructureManager structureManager, ChunkGenerator generator, MobCategory category, BlockPos pos, Holder<Biome> biome) Methods in net.minecraft.world.level with parameters of type WeightedListModifier and TypeMethodDescriptionabstract voidLevel.explode(Entity source, DamageSource damageSource, ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, WeightedList<ExplosionParticleInfo> blockParticles, Holder<SoundEvent> explosionSound) -
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> backgroundMusic) Constructor parameters in net.minecraft.world.level.biome with type arguments of type WeightedListModifierConstructorDescription(package private)MobSpawnSettings(float creatureGenerationProbability, Map<MobCategory, WeightedList<MobSpawnSettings.SpawnerData>> spawners, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> mobSpawnCosts) -
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> TrialSpawnerStateData.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> TrialSpawnerStateData.getDispensingItems(ServerLevel level, TrialSpawnerConfig config, BlockPos pos) 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>> lootTablesToEject) TrialSpawnerConfig.Builder.spawnPotentialsDefinition(WeightedList<SpawnData> spawnPotentialsDefinition) 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> biome, StructureManager structureManager, MobCategory category, BlockPos pos) -
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> weightedList) 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 alias, WeightedList<String> targets) static RandomPoolAliasPoolAliasBinding.random(ResourceKey<StructureTemplatePool> alias, WeightedList<ResourceKey<StructureTemplatePool>> targets) static RandomGroupPoolAliasPoolAliasBinding.randomGroup(WeightedList<List<PoolAliasBinding>> groups) 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)