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 SimpleWeightedRandomList
<ItemStack> TrialSpawnerData.dispensing
private final SimpleWeightedRandomList
<ResourceKey<LootTable>> TrialSpawnerConfig.lootTablesToEject
The field for thelootTablesToEject
record component.private final SimpleWeightedRandomList
<SpawnData> TrialSpawnerConfig.spawnPotentialsDefinition
The field for thespawnPotentialsDefinition
record component.Modifier and TypeMethodDescription(package private) SimpleWeightedRandomList
<ItemStack> TrialSpawnerData.getDispensingItems
(ServerLevel p_338857_, TrialSpawnerConfig p_338213_, BlockPos p_338577_) TrialSpawnerConfig.lootTablesToEject()
Returns the value of thelootTablesToEject
record component.TrialSpawnerConfig.spawnPotentialsDefinition()
Returns the value of thespawnPotentialsDefinition
record component.ModifierConstructorDescriptionTrialSpawnerConfig
(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 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_307435_, SimpleWeightedRandomList<String> p_307653_) static Random
PoolAliasBinding.random
(ResourceKey<StructureTemplatePool> p_307260_, SimpleWeightedRandomList<ResourceKey<StructureTemplatePool>> p_307665_) static RandomGroup
PoolAliasBinding.randomGroup
(SimpleWeightedRandomList<List<PoolAliasBinding>> p_307498_) 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.