public class WeightedRandomChestContent extends WeightedRandomItem
Modifier and Type | Field and Description |
---|---|
ItemStack |
theItemId
The Item/Block ID to generate in the Chest.
|
int |
theMaximumChanceToGenerateItem
The maximum chance of item generating.
|
int |
theMinimumChanceToGenerateItem
The minimum chance of item generating.
|
itemWeight
Constructor and Description |
---|
WeightedRandomChestContent(int par1,
int par2,
int par3,
int par4,
int par5) |
WeightedRandomChestContent(ItemStack par1ItemStack,
int par2,
int par3,
int par4) |
Modifier and Type | Method and Description |
---|---|
static WeightedRandomChestContent[] |
func_92080_a(WeightedRandomChestContent[] par0ArrayOfWeightedRandomChestContent,
WeightedRandomChestContent... par1ArrayOfWeightedRandomChestContent) |
static void |
generateChestContents(Random par0Random,
WeightedRandomChestContent[] par1ArrayOfWeightedRandomChestContent,
IInventory par2IInventory,
int par3)
Generates the Chest contents.
|
static void |
generateDispenserContents(Random par0Random,
WeightedRandomChestContent[] par1ArrayOfWeightedRandomChestContent,
TileEntityDispenser par2TileEntityDispenser,
int par3)
Generates the Dispenser contents.
|
public ItemStack theItemId
public int theMinimumChanceToGenerateItem
public int theMaximumChanceToGenerateItem
public WeightedRandomChestContent(int par1, int par2, int par3, int par4, int par5)
public WeightedRandomChestContent(ItemStack par1ItemStack, int par2, int par3, int par4)
public static void generateChestContents(Random par0Random, WeightedRandomChestContent[] par1ArrayOfWeightedRandomChestContent, IInventory par2IInventory, int par3)
public static void generateDispenserContents(Random par0Random, WeightedRandomChestContent[] par1ArrayOfWeightedRandomChestContent, TileEntityDispenser par2TileEntityDispenser, int par3)
public static WeightedRandomChestContent[] func_92080_a(WeightedRandomChestContent[] par0ArrayOfWeightedRandomChestContent, WeightedRandomChestContent... par1ArrayOfWeightedRandomChestContent)