Uses of Class
net.minecraft.util.collection.WeightedPool
Packages that use WeightedPool
Package
Description
-
Uses of WeightedPool in net.minecraft.block.spawner
Fields in net.minecraft.block.spawner declared as WeightedPoolModifier and TypeFieldDescriptionprivate @Nullable WeightedPool<ItemStack> TrialSpawnerData.itemsToDropWhenOminousprivate WeightedPool<RegistryKey<LootTable>> TrialSpawnerConfig.Builder.lootTablesToEjectprivate final WeightedPool<RegistryKey<LootTable>> TrialSpawnerConfig.lootTablesToEjectThe field for thelootTablesToEjectrecord component.private WeightedPool<MobSpawnerEntry> MobSpawnerLogic.spawnPotentialsprivate WeightedPool<MobSpawnerEntry> TrialSpawnerConfig.Builder.spawnPotentialsprivate final WeightedPool<MobSpawnerEntry> TrialSpawnerConfig.spawnPotentialsThe field for thespawnPotentialsrecord component.Fields in net.minecraft.block.spawner with type parameters of type WeightedPoolModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WeightedPool<MobSpawnerEntry>> MobSpawnerEntry.DATA_POOL_CODECMethods in net.minecraft.block.spawner that return WeightedPoolModifier and TypeMethodDescription(package private) WeightedPool<ItemStack> TrialSpawnerData.getItemsToDropWhenOminous(ServerWorld world, TrialSpawnerConfig config, BlockPos pos) TrialSpawnerConfig.lootTablesToEject()Returns the value of thelootTablesToEjectrecord component.TrialSpawnerConfig.spawnPotentials()Returns the value of thespawnPotentialsrecord component.Methods in net.minecraft.block.spawner with parameters of type WeightedPoolModifier and TypeMethodDescriptionTrialSpawnerConfig.Builder.lootTablesToEject(WeightedPool<RegistryKey<LootTable>> lootTablesToEject) TrialSpawnerConfig.Builder.spawnPotentials(WeightedPool<MobSpawnerEntry> spawnPotentials) Constructors in net.minecraft.block.spawner with parameters of type WeightedPoolModifierConstructorDescriptionTrialSpawnerConfig(int spawnRange, float totalMobs, float simultaneousMobs, float totalMobsAddedPerPlayer, float simultaneousMobsAddedPerPlayer, int ticksBetweenSpawn, WeightedPool<MobSpawnerEntry> spawnPotentials, WeightedPool<RegistryKey<LootTable>> lootTablesToEject, RegistryKey<LootTable> itemsToDropWhenOminous) Creates an instance of aTrialSpawnerConfigrecord class. -
Uses of WeightedPool in net.minecraft.client.render.model
Fields in net.minecraft.client.render.model declared as WeightedPoolModifier and TypeFieldDescriptionprivate final WeightedPool<BlockStateModel.Unbaked> WeightedBlockStateModel.Unbaked.entriesThe field for theentriesrecord component.private final WeightedPool<BlockStateModel> WeightedBlockStateModel.modelsMethods in net.minecraft.client.render.model that return WeightedPoolModifier and TypeMethodDescriptionWeightedBlockStateModel.Unbaked.entries()Returns the value of theentriesrecord component.Constructors in net.minecraft.client.render.model with parameters of type WeightedPoolModifierConstructorDescriptionUnbaked(WeightedPool<BlockStateModel.Unbaked> entries) Creates an instance of aUnbakedrecord class. -
Uses of WeightedPool in net.minecraft.client.render.model.json
Fields in net.minecraft.client.render.model.json declared as WeightedPoolModifier and TypeFieldDescriptionprivate final WeightedPool<ModelVariant> WeightedVariant.variantsThe field for thevariantsrecord component.Methods in net.minecraft.client.render.model.json that return WeightedPoolModifier and TypeMethodDescriptionWeightedVariant.variants()Returns the value of thevariantsrecord component.Constructors in net.minecraft.client.render.model.json with parameters of type WeightedPoolModifierConstructorDescriptionWeightedVariant(WeightedPool<ModelVariant> variants) Creates an instance of aWeightedVariantrecord class. -
Uses of WeightedPool in net.minecraft.client.world
Fields in net.minecraft.client.world declared as WeightedPoolModifier and TypeFieldDescriptionprivate final WeightedPool<BlockParticleEffect> BlockParticleEffectsManager.Entry.blockParticlesThe field for theblockParticlesrecord component.Methods in net.minecraft.client.world that return WeightedPoolModifier and TypeMethodDescriptionBlockParticleEffectsManager.Entry.blockParticles()Returns the value of theblockParticlesrecord component.Methods in net.minecraft.client.world with parameters of type WeightedPoolModifier and TypeMethodDescriptionvoidClientWorld.addBlockParticleEffects(Vec3d center, float radius, int blockCount, WeightedPool<BlockParticleEffect> particles) voidClientWorld.createExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType, ParticleEffect smallParticle, ParticleEffect largeParticle, WeightedPool<BlockParticleEffect> blockParticles, RegistryEntry<SoundEvent> soundEvent) Creates an explosion.voidBlockParticleEffectsManager.scheduleBlockParticles(Vec3d center, float radius, int blockCount, WeightedPool<BlockParticleEffect> particles) Constructors in net.minecraft.client.world with parameters of type WeightedPoolModifierConstructorDescription(package private)Entry(Vec3d center, float radius, int blockCount, WeightedPool<BlockParticleEffect> blockParticles) Creates an instance of aEntryrecord class. -
Uses of WeightedPool in net.minecraft.enchantment.effect.entity
Fields in net.minecraft.enchantment.effect.entity declared as WeightedPoolModifier and TypeFieldDescriptionprivate final WeightedPool<BlockParticleEffect> ExplodeEnchantmentEffect.blockParticlesThe field for theblockParticlesrecord component.Methods in net.minecraft.enchantment.effect.entity that return WeightedPoolModifier and TypeMethodDescriptionExplodeEnchantmentEffect.blockParticles()Returns the value of theblockParticlesrecord component.Constructors in net.minecraft.enchantment.effect.entity with parameters of type WeightedPoolModifierConstructorDescriptionExplodeEnchantmentEffect(boolean attributeToUser, Optional<RegistryEntry<DamageType>> damageType, Optional<EnchantmentLevelBasedValue> knockbackMultiplier, Optional<RegistryEntryList<Block>> immuneBlocks, Vec3d offset, EnchantmentLevelBasedValue radius, boolean createFire, World.ExplosionSourceType blockInteraction, ParticleEffect smallParticle, ParticleEffect largeParticle, WeightedPool<BlockParticleEffect> blockParticles, RegistryEntry<SoundEvent> sound) Creates an instance of aExplodeEnchantmentEffectrecord class. -
Uses of WeightedPool in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive with parameters of type WeightedPoolModifier and TypeMethodDescriptionprivate static SheepColors.ColorSelectorSheepColors.createCombinedSelector(WeightedPool<SheepColors.ColorSelector> pool) -
Uses of WeightedPool in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as WeightedPoolModifier and TypeFieldDescriptionprivate final WeightedPool<BlockParticleEffect> ExplosionS2CPacket.blockParticlesThe field for theblockParticlesrecord component.Methods in net.minecraft.network.packet.s2c.play that return WeightedPoolModifier and TypeMethodDescriptionExplosionS2CPacket.blockParticles()Returns the value of theblockParticlesrecord component.Constructors in net.minecraft.network.packet.s2c.play with parameters of type WeightedPoolModifierConstructorDescriptionExplosionS2CPacket(Vec3d center, float radius, int blockCount, Optional<Vec3d> playerKnockback, ParticleEffect explosionParticle, RegistryEntry<SoundEvent> explosionSound, WeightedPool<BlockParticleEffect> blockParticles) Creates an instance of aExplosionS2CPacketrecord class. -
Uses of WeightedPool in net.minecraft.server.world
Methods in net.minecraft.server.world with parameters of type WeightedPoolModifier and TypeMethodDescriptionvoidServerWorld.createExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType, ParticleEffect smallParticle, ParticleEffect largeParticle, WeightedPool<BlockParticleEffect> blockParticles, RegistryEntry<SoundEvent> soundEvent) Creates an explosion. -
Uses of WeightedPool in net.minecraft.structure.pool.alias
Fields in net.minecraft.structure.pool.alias declared as WeightedPoolModifier and TypeFieldDescriptionprivate final WeightedPool<List<StructurePoolAliasBinding>> RandomGroupStructurePoolAliasBinding.groupsThe field for thegroupsrecord component.private final WeightedPool<RegistryKey<StructurePool>> RandomStructurePoolAliasBinding.targetsThe field for thetargetsrecord component.Methods in net.minecraft.structure.pool.alias that return WeightedPoolModifier and TypeMethodDescriptionRandomGroupStructurePoolAliasBinding.groups()Returns the value of thegroupsrecord component.RandomStructurePoolAliasBinding.targets()Returns the value of thetargetsrecord component.Methods in net.minecraft.structure.pool.alias with parameters of type WeightedPoolModifier and TypeMethodDescriptionStructurePoolAliasBinding.random(String alias, WeightedPool<String> targets) StructurePoolAliasBinding.random(RegistryKey<StructurePool> alias, WeightedPool<RegistryKey<StructurePool>> targets) StructurePoolAliasBinding.randomGroup(WeightedPool<List<StructurePoolAliasBinding>> groups) Constructors in net.minecraft.structure.pool.alias with parameters of type WeightedPoolModifierConstructorDescriptionCreates an instance of aRandomGroupStructurePoolAliasBindingrecord class.RandomStructurePoolAliasBinding(RegistryKey<StructurePool> alias, WeightedPool<RegistryKey<StructurePool>> targets) Creates an instance of aRandomStructurePoolAliasBindingrecord class. -
Uses of WeightedPool in net.minecraft.util.collection
Methods in net.minecraft.util.collection that return WeightedPoolModifier and TypeMethodDescriptionWeightedPool.Builder.build()static <E> WeightedPool<E> WeightedPool.empty()static <E> WeightedPool<E> WeightedPool.of(E entry) static <E> WeightedPool<E> static <E> WeightedPool<E> <T> WeightedPool<T> Methods in net.minecraft.util.collection that return types with arguments of type WeightedPoolModifier and TypeMethodDescriptionstatic <E> com.mojang.serialization.Codec<WeightedPool<E>> WeightedPool.createCodec(com.mojang.serialization.Codec<E> entryCodec) static <E> com.mojang.serialization.Codec<WeightedPool<E>> WeightedPool.createCodec(com.mojang.serialization.MapCodec<E> entryCodec) static <E> com.mojang.serialization.Codec<WeightedPool<E>> WeightedPool.createNonEmptyCodec(com.mojang.serialization.Codec<E> entryCodec) static <E> com.mojang.serialization.Codec<WeightedPool<E>> WeightedPool.createNonEmptyCodec(com.mojang.serialization.MapCodec<E> entryCodec) static <E,B extends ByteBuf>
PacketCodec<B, WeightedPool<E>> WeightedPool.createPacketCodec(PacketCodec<B, E> entryCodec) -
Uses of WeightedPool in net.minecraft.util.math.intprovider
Fields in net.minecraft.util.math.intprovider declared as WeightedPoolModifier and TypeFieldDescriptionprivate final WeightedPool<IntProvider> WeightedListIntProvider.weightedListConstructors in net.minecraft.util.math.intprovider with parameters of type WeightedPool -
Uses of WeightedPool in net.minecraft.world
Fields in net.minecraft.world declared as WeightedPoolModifier and TypeFieldDescriptionprivate static final WeightedPool<BlockParticleEffect> private final WeightedPool<SpawnSettings.SpawnEntry> StructureSpawns.spawnsThe field for thespawnsrecord component.Methods in net.minecraft.world that return WeightedPoolModifier and TypeMethodDescriptionprivate static WeightedPool<SpawnSettings.SpawnEntry> SpawnHelper.getSpawnEntries(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, BlockPos pos, @Nullable RegistryEntry<Biome> biomeEntry) StructureSpawns.spawns()Returns the value of thespawnsrecord component.Methods in net.minecraft.world with parameters of type WeightedPoolModifier and TypeMethodDescriptionabstract voidWorld.createExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, World.ExplosionSourceType explosionSourceType, ParticleEffect smallParticle, ParticleEffect largeParticle, WeightedPool<BlockParticleEffect> blockParticles, RegistryEntry<SoundEvent> soundEvent) Creates an explosion.Constructors in net.minecraft.world with parameters of type WeightedPoolModifierConstructorDescriptionStructureSpawns(StructureSpawns.BoundingBox boundingBox, WeightedPool<SpawnSettings.SpawnEntry> spawns) Creates an instance of aStructureSpawnsrecord class. -
Uses of WeightedPool in net.minecraft.world.biome
Fields in net.minecraft.world.biome declared as WeightedPoolModifier and TypeFieldDescriptionstatic final WeightedPool<SpawnSettings.SpawnEntry> SpawnSettings.EMPTY_ENTRY_POOLFields in net.minecraft.world.biome with type parameters of type WeightedPoolModifier and TypeFieldDescriptionprivate final Map<SpawnGroup, WeightedPool<SpawnSettings.SpawnEntry>> SpawnSettings.spawnersMethods in net.minecraft.world.biome that return WeightedPoolConstructor parameters in net.minecraft.world.biome with type arguments of type WeightedPoolModifierConstructorDescription(package private)SpawnSettings(float creatureSpawnProbability, Map<SpawnGroup, WeightedPool<SpawnSettings.SpawnEntry>> spawners, Map<EntityType<?>, SpawnSettings.SpawnDensity> spawnCosts) -
Uses of WeightedPool in net.minecraft.world.gen.chunk
Methods in net.minecraft.world.gen.chunk that return WeightedPoolModifier and TypeMethodDescriptionChunkGenerator.getEntitySpawnList(RegistryEntry<Biome> biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos) -
Uses of WeightedPool in net.minecraft.world.gen.heightprovider
Fields in net.minecraft.world.gen.heightprovider declared as WeightedPoolModifier and TypeFieldDescriptionprivate final WeightedPool<HeightProvider> WeightedListHeightProvider.weightedListConstructors in net.minecraft.world.gen.heightprovider with parameters of type WeightedPoolModifierConstructorDescriptionWeightedListHeightProvider(WeightedPool<HeightProvider> weightedList) -
Uses of WeightedPool in net.minecraft.world.gen.stateprovider
Fields in net.minecraft.world.gen.stateprovider declared as WeightedPoolModifier and TypeFieldDescriptionprivate final WeightedPool<BlockState> WeightedBlockStateProvider.statesMethods in net.minecraft.world.gen.stateprovider with parameters of type WeightedPoolModifier and TypeMethodDescriptionprivate static com.mojang.serialization.DataResult<WeightedBlockStateProvider> WeightedBlockStateProvider.wrap(WeightedPool<BlockState> states) Constructors in net.minecraft.world.gen.stateprovider with parameters of type WeightedPool -
Uses of WeightedPool in net.minecraft.world.gen.structure
Fields in net.minecraft.world.gen.structure declared as WeightedPoolModifier and TypeFieldDescriptionstatic final WeightedPool<SpawnSettings.SpawnEntry> NetherFortressStructure.MONSTER_SPAWNS