net.minecraft.util

## Class WeightedRandomItem

- java.lang.Object
- - net.minecraft.util.WeightedRandomItem

- Direct Known Subclasses:
    DungeonHooks.DungeonMob, EnchantmentData, SpawnListEntry, WeightedRandomChestContent, WeightedRandomMinecart

      public class WeightedRandomItem
      extends Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `int` | `itemWeight` The Weight is how often the item is chosen(higher number is higher chance(lower is lower))

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `WeightedRandomItem(int par1)`

  - ### Method Summary

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### itemWeight

          public int itemWeight

      The Weight is how often the item is chosen(higher number is higher chance(lower is lower))

  - ### Constructor Detail

    - #### WeightedRandomItem

          public WeightedRandomItem(int par1)