Uses of Class
net.minecraft.util.random.SimpleWeightedRandomList
Packages that use SimpleWeightedRandomList
Package
Description
-
Uses of SimpleWeightedRandomList in net.minecraft.util.random
Methods in net.minecraft.util.random that return SimpleWeightedRandomListModifier and TypeMethodDescriptionSimpleWeightedRandomList.Builder.build()static <E> SimpleWeightedRandomList<E> SimpleWeightedRandomList.empty()static <E> SimpleWeightedRandomList<E> SimpleWeightedRandomList.single(E p_185863_) Methods in net.minecraft.util.random that return types with arguments of type SimpleWeightedRandomListModifier and TypeMethodDescriptionstatic <E> com.mojang.serialization.Codec<SimpleWeightedRandomList<E>> SimpleWeightedRandomList.wrappedCodec(com.mojang.serialization.Codec<E> p_146265_) static <E> com.mojang.serialization.Codec<SimpleWeightedRandomList<E>> SimpleWeightedRandomList.wrappedCodecAllowingEmpty(com.mojang.serialization.Codec<E> p_185861_) -
Uses of SimpleWeightedRandomList in net.minecraft.util.valueproviders
Fields in net.minecraft.util.valueproviders declared as SimpleWeightedRandomListModifier and TypeFieldDescriptionprivate final SimpleWeightedRandomList<IntProvider> WeightedListInt.distributionConstructors in net.minecraft.util.valueproviders with parameters of type SimpleWeightedRandomList -
Uses of SimpleWeightedRandomList in net.minecraft.world.level
Fields in net.minecraft.world.level declared as SimpleWeightedRandomListModifier and TypeFieldDescriptionprivate SimpleWeightedRandomList<SpawnData> BaseSpawner.spawnPotentialsFields in net.minecraft.world.level with type parameters of type SimpleWeightedRandomListModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SimpleWeightedRandomList<SpawnData>> SpawnData.LIST_CODEC -
Uses of SimpleWeightedRandomList in net.minecraft.world.level.block.entity.trialspawner
Fields in net.minecraft.world.level.block.entity.trialspawner declared as SimpleWeightedRandomListModifier and TypeFieldDescriptionprivate SimpleWeightedRandomList<ItemStack> TrialSpawnerData.dispensingprivate final SimpleWeightedRandomList<ResourceKey<LootTable>> TrialSpawnerConfig.lootTablesToEjectThe field for thelootTablesToEjectrecord component.private final SimpleWeightedRandomList<SpawnData> TrialSpawnerConfig.spawnPotentialsDefinitionThe field for thespawnPotentialsDefinitionrecord component.Methods in net.minecraft.world.level.block.entity.trialspawner that return SimpleWeightedRandomListModifier and TypeMethodDescription(package private) SimpleWeightedRandomList<ItemStack> TrialSpawnerData.getDispensingItems(ServerLevel p_338857_, TrialSpawnerConfig p_338213_, BlockPos p_338577_) TrialSpawnerConfig.lootTablesToEject()Returns the value of thelootTablesToEjectrecord component.TrialSpawnerConfig.spawnPotentialsDefinition()Returns the value of thespawnPotentialsDefinitionrecord component.Constructors in net.minecraft.world.level.block.entity.trialspawner with parameters of type SimpleWeightedRandomListModifierConstructorDescriptionTrialSpawnerConfig(int spawnRange, float totalMobs, float simultaneousMobs, float totalMobsAddedPerPlayer, float simultaneousMobsAddedPerPlayer, int ticksBetweenSpawn, SimpleWeightedRandomList<SpawnData> spawnPotentialsDefinition, SimpleWeightedRandomList<ResourceKey<LootTable>> lootTablesToEject, ResourceKey<LootTable> itemsToDropWhenOminous) Creates an instance of aTrialSpawnerConfigrecord class. -
Uses of SimpleWeightedRandomList in net.minecraft.world.level.levelgen.feature.stateproviders
Fields in net.minecraft.world.level.levelgen.feature.stateproviders declared as SimpleWeightedRandomListModifier and TypeFieldDescriptionprivate final SimpleWeightedRandomList<BlockState> WeightedStateProvider.weightedListMethods in net.minecraft.world.level.levelgen.feature.stateproviders with parameters of type SimpleWeightedRandomListModifier and TypeMethodDescriptionprivate static com.mojang.serialization.DataResult<WeightedStateProvider> WeightedStateProvider.create(SimpleWeightedRandomList<BlockState> p_161598_) Constructors in net.minecraft.world.level.levelgen.feature.stateproviders with parameters of type SimpleWeightedRandomListModifierConstructorDescriptionWeightedStateProvider(SimpleWeightedRandomList<BlockState> p_161596_) -
Uses of SimpleWeightedRandomList in net.minecraft.world.level.levelgen.heightproviders
Fields in net.minecraft.world.level.levelgen.heightproviders declared as SimpleWeightedRandomListModifier and TypeFieldDescriptionprivate final SimpleWeightedRandomList<HeightProvider> WeightedListHeight.distributionConstructors in net.minecraft.world.level.levelgen.heightproviders with parameters of type SimpleWeightedRandomListModifierConstructorDescriptionWeightedListHeight(SimpleWeightedRandomList<HeightProvider> p_191536_) -
Uses of SimpleWeightedRandomList in net.minecraft.world.level.levelgen.structure.pools.alias
Fields in net.minecraft.world.level.levelgen.structure.pools.alias declared as SimpleWeightedRandomListModifier and TypeFieldDescriptionprivate final SimpleWeightedRandomList<List<PoolAliasBinding>> RandomGroup.groupsThe field for thegroupsrecord component.private final SimpleWeightedRandomList<ResourceKey<StructureTemplatePool>> Random.targetsThe field for thetargetsrecord component.Methods in net.minecraft.world.level.levelgen.structure.pools.alias that return SimpleWeightedRandomListModifier and TypeMethodDescriptionRandomGroup.groups()Returns the value of thegroupsrecord component.Random.targets()Returns the value of thetargetsrecord component.Methods in net.minecraft.world.level.levelgen.structure.pools.alias with parameters of type SimpleWeightedRandomListModifier and TypeMethodDescriptionstatic RandomPoolAliasBinding.random(String p_307435_, SimpleWeightedRandomList<String> p_307653_) static RandomPoolAliasBinding.random(ResourceKey<StructureTemplatePool> p_307260_, SimpleWeightedRandomList<ResourceKey<StructureTemplatePool>> p_307665_) static RandomGroupPoolAliasBinding.randomGroup(SimpleWeightedRandomList<List<PoolAliasBinding>> p_307498_) Constructors in net.minecraft.world.level.levelgen.structure.pools.alias with parameters of type SimpleWeightedRandomListModifierConstructorDescription(package private)Random(ResourceKey<StructureTemplatePool> alias, SimpleWeightedRandomList<ResourceKey<StructureTemplatePool>> targets) Creates an instance of aRandomrecord class.(package private)Creates an instance of aRandomGrouprecord class.