net.minecraft.util.WeightedRandomChestContent.WeightedRandomChestContent |
( |
int |
par1, |
|
|
int |
par2, |
|
|
int |
par3, |
|
|
int |
par4, |
|
|
int |
par5 |
|
) |
| |
net.minecraft.util.WeightedRandomChestContent.WeightedRandomChestContent |
( |
ItemStack |
par1ItemStack, |
|
|
int |
par2, |
|
|
int |
par3, |
|
|
int |
par4 |
|
) |
| |
ItemStack [] net.minecraft.util.WeightedRandomChestContent.generateChestContent |
( |
Random |
random, |
|
|
IInventory |
newInventory |
|
) |
| |
|
protected |
Allow a mod to submit a custom implementation that can delegate item stack generation beyond simple stack lookup
- Parameters
-
random | The current random for generation |
newInventory | The inventory being generated (do not populate it, but you can refer to it) |
- Returns
- An array of ItemStack to put into the chest
static void net.minecraft.util.WeightedRandomChestContent.generateChestContents |
( |
Random |
par0Random, |
|
|
WeightedRandomChestContent[] |
par1ArrayOfWeightedRandomChestContent, |
|
|
IInventory |
par2IInventory, |
|
|
int |
par3 |
|
) |
| |
|
static |
Generates the Chest contents.
static void net.minecraft.util.WeightedRandomChestContent.generateDispenserContents |
( |
Random |
par0Random, |
|
|
WeightedRandomChestContent[] |
par1ArrayOfWeightedRandomChestContent, |
|
|
TileEntityDispenser |
par2TileEntityDispenser, |
|
|
int |
par3 |
|
) |
| |
|
static |
Generates the Dispenser contents.
ItemStack net.minecraft.util.WeightedRandomChestContent.theItemId = null |
The Item/Block ID to generate in the Chest.
int net.minecraft.util.WeightedRandomChestContent.theMaximumChanceToGenerateItem |
The maximum chance of item generating.
int net.minecraft.util.WeightedRandomChestContent.theMinimumChanceToGenerateItem |
The minimum chance of item generating.
The documentation for this class was generated from the following file: