## Uses of Class
net.minecraft.util.WeightedRandomItem

- Packages that use WeightedRandomItem
  Package | Description
  --- | ---
  net.minecraft.enchantment |
  net.minecraft.util |
  net.minecraft.world.biome |
  net.minecraftforge.common |

- - ### Uses of WeightedRandomItem in net.minecraft.enchantment

    Subclasses of WeightedRandomItem in net.minecraft.enchantment
    Modifier and Type | Class and Description
    --- | ---
    `class` | `EnchantmentData`

  - ### Uses of WeightedRandomItem in net.minecraft.util

    Subclasses of WeightedRandomItem in net.minecraft.util
    Modifier and Type | Class and Description
    --- | ---
    `class` | `WeightedRandomChestContent`

    Methods in net.minecraft.util that return WeightedRandomItem
    Modifier and Type | Method and Description
    --- | ---
    `static WeightedRandomItem` | WeightedRandom.`getRandomItem(Random par0Random, Collection par1Collection)` Returns a random choice from the input items.
    `static WeightedRandomItem` | WeightedRandom.`getRandomItem(Random par0Random, Collection par1Collection, int par2)` Returns a random choice from the input items, with a total weight value.
    `static WeightedRandomItem` | WeightedRandom.`getRandomItem(Random par0Random, WeightedRandomItem[] par1ArrayOfWeightedRandomItem)` Returns a random choice from the input items.
    `static WeightedRandomItem` | WeightedRandom.`getRandomItem(Random par0Random, WeightedRandomItem[] par1ArrayOfWeightedRandomItem, int par2)` Returns a random choice from the input array of items, with a total weight value.

    Methods in net.minecraft.util with parameters of type WeightedRandomItem
    Modifier and Type | Method and Description
    --- | ---
    `static WeightedRandomItem` | WeightedRandom.`getRandomItem(Random par0Random, WeightedRandomItem[] par1ArrayOfWeightedRandomItem)` Returns a random choice from the input items.
    `static WeightedRandomItem` | WeightedRandom.`getRandomItem(Random par0Random, WeightedRandomItem[] par1ArrayOfWeightedRandomItem, int par2)` Returns a random choice from the input array of items, with a total weight value.
    `static int` | WeightedRandom.`getTotalWeight(WeightedRandomItem[] par0ArrayOfWeightedRandomItem)` Returns the total weight of all items in a array.

  - ### Uses of WeightedRandomItem in net.minecraft.world.biome

    Subclasses of WeightedRandomItem in net.minecraft.world.biome
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SpawnListEntry`

  - ### Uses of WeightedRandomItem in net.minecraftforge.common

    Subclasses of WeightedRandomItem in net.minecraftforge.common
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `DungeonHooks.DungeonLoot` Deprecated.
    `static class` | `DungeonHooks.DungeonMob`