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(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, double x, double y, double z, float r, boolean fire, Level.ExplosionInteraction interactionType, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, WeightedList<ExplosionParticleInfo> secondaryParticles, Holder<SoundEvent> explosionSound) 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 WeightedListModifierConstructorDescriptionprivateExplosionInfo(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.Methods in net.minecraft.client.resources.model with parameters of type WeightedListModifier and TypeMethodDescriptionprivate static booleanWeightedVariants.hasTranslucency(WeightedList<BlockStateModel> list) 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(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, double x, double y, double z, float r, boolean fire, Level.ExplosionInteraction interactionType, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, WeightedList<ExplosionParticleInfo> blockParticles, Holder<SoundEvent> explosionSound) -
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 value) 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> elements) -
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 mobCategory, BlockPos pos, @Nullable Holder<Biome> biome) Methods in net.minecraft.world.level with parameters of type WeightedListModifier and TypeMethodDescriptionabstract voidLevel.explode(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, double x, double y, double z, float r, boolean fire, Level.ExplosionInteraction interactionType, 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 Map<MobCategory, WeightedList<MobSpawnSettings.SpawnerData>> MobSpawnSettings.spawnersMethods in net.minecraft.world.level.biome that return WeightedListConstructor parameters in net.minecraft.world.level.biome with type arguments of type WeightedListModifierConstructorDescriptionprivateMobSpawnSettings(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 @Nullable 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 mobCategory, 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 id, WeightedList<String> targets) static RandomPoolAliasPoolAliasBinding.random(ResourceKey<StructureTemplatePool> id, WeightedList<ResourceKey<StructureTemplatePool>> targets) static RandomGroupPoolAliasPoolAliasBinding.randomGroup(WeightedList<List<PoolAliasBinding>> combinations) 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.Constructors 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)