static WeightedRandomItem net.minecraft.util.WeightedRandom.getRandomItem |
( |
Random |
par0Random, |
|
|
Collection |
par1Collection, |
|
|
int |
par2 |
|
) |
| |
|
static |
Returns a random choice from the input items, with a total weight value.
static WeightedRandomItem net.minecraft.util.WeightedRandom.getRandomItem |
( |
Random |
par0Random, |
|
|
Collection |
par1Collection |
|
) |
| |
|
static |
Returns a random choice from the input items.
Returns a random choice from the input array of items, with a total weight value.
Returns a random choice from the input items.
static int net.minecraft.util.WeightedRandom.getTotalWeight |
( |
Collection |
par0Collection) | |
|
|
static |
Returns the total weight of all items in a collection.
static int net.minecraft.util.WeightedRandom.getTotalWeight |
( |
WeightedRandomItem[] |
par0ArrayOfWeightedRandomItem) | |
|
|
static |
Returns the total weight of all items in a array.
The documentation for this class was generated from the following file:
- C:/Users/LazDude/Downloads/MinecraftModding/YATS/forge/mcp/src/minecraft/net/minecraft/util/WeightedRandom.java