YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.util.WeightedRandom Class Reference

Static Public Member Functions

static int getTotalWeight (Collection par0Collection)
 
static WeightedRandomItem getRandomItem (Random par0Random, Collection par1Collection, int par2)
 
static WeightedRandomItem getRandomItem (Random par0Random, Collection par1Collection)
 
static int getTotalWeight (WeightedRandomItem[] par0ArrayOfWeightedRandomItem)
 
static WeightedRandomItem getRandomItem (Random par0Random, WeightedRandomItem[] par1ArrayOfWeightedRandomItem, int par2)
 
static WeightedRandomItem getRandomItem (Random par0Random, WeightedRandomItem[] par1ArrayOfWeightedRandomItem)
 

Member Function Documentation

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.

static WeightedRandomItem net.minecraft.util.WeightedRandom.getRandomItem ( Random  par0Random,
WeightedRandomItem[]  par1ArrayOfWeightedRandomItem,
int  par2 
)
static

Returns a random choice from the input array of items, with a total weight value.

static WeightedRandomItem net.minecraft.util.WeightedRandom.getRandomItem ( Random  par0Random,
WeightedRandomItem[]  par1ArrayOfWeightedRandomItem 
)
static

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: