net.minecraftforge.common.ChestGenHooks.ChestGenHooks |
( |
String |
category) | |
|
Adds a new entry into the possible items to generate.
- Parameters
-
static ItemStack [] net.minecraftforge.common.ChestGenHooks.generateStacks |
( |
Random |
rand, |
|
|
ItemStack |
source, |
|
|
int |
min, |
|
|
int |
max |
|
) |
| |
|
static |
Generates an array of items based on the input min/max count. If the stack can not hold the total amount, it will be split into stacks of size 1.
- Parameters
-
rand | A random number generator |
source | Source item stack |
min | Minimum number of items |
max | Maximum number of items |
- Returns
- An array containing the generated item stacks
static int net.minecraftforge.common.ChestGenHooks.getCount |
( |
String |
category, |
|
|
Random |
rand |
|
) |
| |
|
static |
int net.minecraftforge.common.ChestGenHooks.getCount |
( |
Random |
rand) | |
|
Gets a random number between countMin and countMax.
- Parameters
-
- Returns
- A random number where countMin <= num <= countMax
static ChestGenHooks net.minecraftforge.common.ChestGenHooks.getInfo |
( |
String |
category) | |
|
|
static |
Retrieves, or creates the info class for the specified category.
- Parameters
-
category | The category name |
- Returns
- A instance of ChestGenHooks for the specified category.
Gets an array of all random objects that are associated with this category.
- Returns
- The random objects
int net.minecraftforge.common.ChestGenHooks.getMax |
( |
) | |
|
int net.minecraftforge.common.ChestGenHooks.getMin |
( |
) | |
|
static ItemStack net.minecraftforge.common.ChestGenHooks.getOneItem |
( |
String |
category, |
|
|
Random |
rand |
|
) |
| |
|
static |
ItemStack net.minecraftforge.common.ChestGenHooks.getOneItem |
( |
Random |
rand) | |
|
Returns a single ItemStack from the possible items in this registry, Useful if you just want a quick and dirty random Item.
- Parameters
-
- Returns
- A single ItemStack, or null if it could not get one.
static void net.minecraftforge.common.ChestGenHooks.removeItem |
( |
String |
category, |
|
|
ItemStack |
item |
|
) |
| |
|
static |
void net.minecraftforge.common.ChestGenHooks.removeItem |
( |
ItemStack |
item) | |
|
Removes all items that match the input item stack, Only metadata and item ID are checked. If the input item has a metadata of -1, all metadatas will match.
- Parameters
-
void net.minecraftforge.common.ChestGenHooks.setMax |
( |
int |
value) | |
|
void net.minecraftforge.common.ChestGenHooks.setMin |
( |
int |
value) | |
|
final String net.minecraftforge.common.ChestGenHooks.BONUS_CHEST = "bonusChest" |
|
static |
final String net.minecraftforge.common.ChestGenHooks.DUNGEON_CHEST = "dungeonChest" |
|
static |
final String net.minecraftforge.common.ChestGenHooks.MINESHAFT_CORRIDOR = "mineshaftCorridor" |
|
static |
final String net.minecraftforge.common.ChestGenHooks.PYRAMID_DESERT_CHEST = "pyramidDesertyChest" |
|
static |
final String net.minecraftforge.common.ChestGenHooks.PYRAMID_JUNGLE_CHEST = "pyramidJungleChest" |
|
static |
final String net.minecraftforge.common.ChestGenHooks.PYRAMID_JUNGLE_DISPENSER = "pyramidJungleDispenser" |
|
static |
final String net.minecraftforge.common.ChestGenHooks.STRONGHOLD_CORRIDOR = "strongholdCorridor" |
|
static |
final String net.minecraftforge.common.ChestGenHooks.STRONGHOLD_CROSSING = "strongholdCrossing" |
|
static |
final String net.minecraftforge.common.ChestGenHooks.STRONGHOLD_LIBRARY = "strongholdLibrary" |
|
static |
final String net.minecraftforge.common.ChestGenHooks.VILLAGE_BLACKSMITH = "villageBlacksmith" |
|
static |
The documentation for this class was generated from the following file:
- C:/Users/LazDude/Downloads/MinecraftModding/YATS/forge/mcp/src/minecraft/net/minecraftforge/common/ChestGenHooks.java