Package net.minecraft.src
Class WeightedRandom
- java.lang.Object
-
- net.minecraft.src.WeightedRandom
-
public class WeightedRandom extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WeightedRandom()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WeightedRandomChoice
getRandomItem(java.util.Random var0, java.util.Collection var1)
static WeightedRandomChoice
getRandomItem(java.util.Random var0, java.util.Collection var1, int var2)
static WeightedRandomChoice
getRandomItem(java.util.Random var0, WeightedRandomChoice[] var1)
static WeightedRandomChoice
getRandomItem(java.util.Random var0, WeightedRandomChoice[] var1, int var2)
static int
getTotalWeight(java.util.Collection var0)
static int
getTotalWeight(WeightedRandomChoice[] var0)
-
-
-
Method Detail
-
getTotalWeight
public static int getTotalWeight(java.util.Collection var0)
-
getRandomItem
public static WeightedRandomChoice getRandomItem(java.util.Random var0, java.util.Collection var1, int var2)
-
getRandomItem
public static WeightedRandomChoice getRandomItem(java.util.Random var0, java.util.Collection var1)
-
getTotalWeight
public static int getTotalWeight(WeightedRandomChoice[] var0)
-
getRandomItem
public static WeightedRandomChoice getRandomItem(java.util.Random var0, WeightedRandomChoice[] var1, int var2)
-
getRandomItem
public static WeightedRandomChoice getRandomItem(java.util.Random var0, WeightedRandomChoice[] var1)
-
-