public class WeightedRandomChestContent extends WeightedRandom.Item
Modifier and Type | Field and Description |
---|---|
ItemStack |
theItemId |
int |
theMaximumChanceToGenerateItem |
int |
theMinimumChanceToGenerateItem |
itemWeight
Constructor and Description |
---|
WeightedRandomChestContent(Item p_i45311_1_,
int p_i45311_2_,
int p_i45311_3_,
int p_i45311_4_,
int p_i45311_5_) |
WeightedRandomChestContent(ItemStack par1ItemStack,
int par2,
int par3,
int par4) |
Modifier and Type | Method and Description |
---|---|
static WeightedRandomChestContent[] |
func_92080_a(WeightedRandomChestContent[] par0ArrayOfWeightedRandomChestContent,
WeightedRandomChestContent... par1ArrayOfWeightedRandomChestContent) |
protected ItemStack[] |
generateChestContent(java.util.Random random,
IInventory newInventory)
Allow a mod to submit a custom implementation that can delegate item stack generation beyond simple stack lookup
|
static void |
generateChestContents(java.util.Random par0Random,
WeightedRandomChestContent[] par1ArrayOfWeightedRandomChestContent,
IInventory par2IInventory,
int par3) |
static void |
generateDispenserContents(java.util.Random p_150706_0_,
WeightedRandomChestContent[] p_150706_1_,
TileEntityDispenser p_150706_2_,
int p_150706_3_) |
public ItemStack theItemId
public int theMinimumChanceToGenerateItem
public int theMaximumChanceToGenerateItem
public WeightedRandomChestContent(Item p_i45311_1_, int p_i45311_2_, int p_i45311_3_, int p_i45311_4_, int p_i45311_5_)
public WeightedRandomChestContent(ItemStack par1ItemStack, int par2, int par3, int par4)
public static void generateChestContents(java.util.Random par0Random, WeightedRandomChestContent[] par1ArrayOfWeightedRandomChestContent, IInventory par2IInventory, int par3)
public static void generateDispenserContents(java.util.Random p_150706_0_, WeightedRandomChestContent[] p_150706_1_, TileEntityDispenser p_150706_2_, int p_150706_3_)
public static WeightedRandomChestContent[] func_92080_a(WeightedRandomChestContent[] par0ArrayOfWeightedRandomChestContent, WeightedRandomChestContent... par1ArrayOfWeightedRandomChestContent)
protected ItemStack[] generateChestContent(java.util.Random random, IInventory newInventory)
random
- The current random for generationnewInventory
- The inventory being generated (do not populate it, but you can refer to it)ItemStack
to put into the chest