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.distribution
Constructors 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.spawnPotentials
Fields 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 final SimpleWeightedRandomList<ResourceLocation>
TrialSpawnerConfig.lootTablesToEject
The field for thelootTablesToEject
record component.protected SimpleWeightedRandomList<SpawnData>
TrialSpawnerData.spawnPotentials
private final SimpleWeightedRandomList<SpawnData>
TrialSpawnerConfig.spawnPotentialsDefinition
The field for thespawnPotentialsDefinition
record component.Methods in net.minecraft.world.level.block.entity.trialspawner that return SimpleWeightedRandomListModifier and TypeMethodDescriptionTrialSpawnerConfig.lootTablesToEject()
Returns the value of thelootTablesToEject
record component.TrialSpawnerConfig.spawnPotentialsDefinition()
Returns the value of thespawnPotentialsDefinition
record component.Constructors in net.minecraft.world.level.block.entity.trialspawner with parameters of type SimpleWeightedRandomListModifierConstructorDescriptionTrialSpawnerConfig
(int requiredPlayerRange, int spawnRange, float totalMobs, float simultaneousMobs, float totalMobsAddedPerPlayer, float simultaneousMobsAddedPerPlayer, int ticksBetweenSpawn, int targetCooldownLength, SimpleWeightedRandomList<SpawnData> spawnPotentialsDefinition, SimpleWeightedRandomList<ResourceLocation> lootTablesToEject) Creates an instance of aTrialSpawnerConfig
record 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.weightedList
Methods 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.distribution
Constructors 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.groups
The field for thegroups
record component.private final SimpleWeightedRandomList<ResourceKey<StructureTemplatePool>>
Random.targets
The field for thetargets
record component.Methods in net.minecraft.world.level.levelgen.structure.pools.alias that return SimpleWeightedRandomListModifier and TypeMethodDescriptionRandomGroup.groups()
Returns the value of thegroups
record component.Random.targets()
Returns the value of thetargets
record component.Methods in net.minecraft.world.level.levelgen.structure.pools.alias with parameters of type SimpleWeightedRandomListModifier and TypeMethodDescriptionstatic Random
PoolAliasBinding.random
(String p_311792_, SimpleWeightedRandomList<String> p_310543_) static Random
PoolAliasBinding.random
(ResourceKey<StructureTemplatePool> p_311453_, SimpleWeightedRandomList<ResourceKey<StructureTemplatePool>> p_311769_) static RandomGroup
PoolAliasBinding.randomGroup
(SimpleWeightedRandomList<List<PoolAliasBinding>> p_310479_) 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 aRandom
record class.(package private)
Creates an instance of aRandomGroup
record class.