Uses of Class
net.minecraft.util.random.SimpleWeightedRandomList
Package
Description
-
Uses of SimpleWeightedRandomList in net.minecraft.util.random
Modifier and TypeMethodDescriptionSimpleWeightedRandomList.Builder.build()
static <E> SimpleWeightedRandomList<E>
SimpleWeightedRandomList.empty()
static <E> SimpleWeightedRandomList<E>
SimpleWeightedRandomList.single
(E p_185863_) Modifier 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
Modifier and TypeFieldDescriptionprivate final SimpleWeightedRandomList<IntProvider>
WeightedListInt.distribution
-
Uses of SimpleWeightedRandomList in net.minecraft.world.level
Modifier and TypeFieldDescriptionprivate SimpleWeightedRandomList<SpawnData>
BaseSpawner.spawnPotentials
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SimpleWeightedRandomList<SpawnData>>
SpawnData.LIST_CODEC
-
Uses of SimpleWeightedRandomList in net.minecraft.world.level.block.entity.trialspawner
Modifier 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.Modifier and TypeMethodDescriptionTrialSpawnerConfig.lootTablesToEject()
Returns the value of thelootTablesToEject
record component.TrialSpawnerConfig.spawnPotentialsDefinition()
Returns the value of thespawnPotentialsDefinition
record component.ModifierConstructorDescriptionTrialSpawnerConfig
(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
Modifier and TypeFieldDescriptionprivate final SimpleWeightedRandomList<BlockState>
WeightedStateProvider.weightedList
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.DataResult<WeightedStateProvider>
WeightedStateProvider.create
(SimpleWeightedRandomList<BlockState> p_161598_) ModifierConstructorDescriptionWeightedStateProvider
(SimpleWeightedRandomList<BlockState> p_161596_) -
Uses of SimpleWeightedRandomList in net.minecraft.world.level.levelgen.heightproviders
Modifier and TypeFieldDescriptionprivate final SimpleWeightedRandomList<HeightProvider>
WeightedListHeight.distribution
ModifierConstructorDescriptionWeightedListHeight
(SimpleWeightedRandomList<HeightProvider> p_191536_) -
Uses of SimpleWeightedRandomList in net.minecraft.world.level.levelgen.structure.pools.alias
Modifier 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.Modifier and TypeMethodDescriptionRandomGroup.groups()
Returns the value of thegroups
record component.Random.targets()
Returns the value of thetargets
record component.Modifier 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_) ModifierConstructorDescription(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.