Uses of Interface
net.minecraft.util.random.WeightedEntry
Packages that use WeightedEntry
Package
Description
-
Uses of WeightedEntry in net.minecraft.util.random
Classes in net.minecraft.util.random with type parameters of type WeightedEntryClasses in net.minecraft.util.random that implement WeightedEntryModifier and TypeClassDescriptionstatic classstatic final recordMethods in net.minecraft.util.random with type parameters of type WeightedEntryModifier and TypeMethodDescriptionstatic <E extends WeightedEntry>
com.mojang.serialization.Codec<WeightedRandomList<E>> WeightedRandomList.codec(com.mojang.serialization.Codec<E> elementCodec) static <E extends WeightedEntry>
WeightedRandomList<E> WeightedRandomList.create()static <E extends WeightedEntry>
WeightedRandomList<E> WeightedRandomList.create(E... items) static <E extends WeightedEntry>
WeightedRandomList<E> static <T extends WeightedEntry>
Optional<T> WeightedRandom.getRandomItem(RandomSource random, List<T> entries) static <T extends WeightedEntry>
Optional<T> WeightedRandom.getRandomItem(RandomSource random, List<T> entries, int totalWeight) static <T extends WeightedEntry>
Optional<T> WeightedRandom.getWeightedItem(List<T> entries, int weightedIndex) Methods in net.minecraft.util.random with parameters of type WeightedEntryModifier and TypeMethodDescriptionstatic <E extends WeightedEntry>
WeightedRandomList<E> WeightedRandomList.create(E... items) Method parameters in net.minecraft.util.random with type arguments of type WeightedEntryModifier and TypeMethodDescriptionstatic intWeightedRandom.getTotalWeight(List<? extends WeightedEntry> entries) -
Uses of WeightedEntry in net.minecraft.world.entity.ai.behavior
Classes in net.minecraft.world.entity.ai.behavior that implement WeightedEntry -
Uses of WeightedEntry in net.minecraft.world.item.enchantment
Classes in net.minecraft.world.item.enchantment that implement WeightedEntryModifier and TypeClassDescriptionclassDefines an immutable instance of an enchantment and its level. -
Uses of WeightedEntry in net.minecraft.world.level.biome
Classes in net.minecraft.world.level.biome that implement WeightedEntry -
Uses of WeightedEntry in net.neoforged.neoforge.common
Classes in net.neoforged.neoforge.common that implement WeightedEntry