|
static void | registerWorldGenerator (IWorldGenerator generator) |
|
static void | generateWorld (int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) |
|
static Object | buildBlock (ModContainer container, Class<?> type, Block annotation) throws Exception |
|
static void | registerItem (net.minecraft.item.Item item, String name) |
|
static void | registerItem (net.minecraft.item.Item item, String name, String modId) |
|
static void | registerBlock (net.minecraft.block.Block block) |
|
static void | registerBlock (net.minecraft.block.Block block, String name) |
|
static void | registerBlock (net.minecraft.block.Block block, Class<?extends ItemBlock > itemclass) |
|
static void | registerBlock (net.minecraft.block.Block block, Class<?extends ItemBlock > itemclass, String name) |
|
static void | registerBlock (net.minecraft.block.Block block, Class<?extends ItemBlock > itemclass, String name, String modId) |
|
static void | addRecipe (ItemStack output, Object...params) |
|
static IRecipe | addShapedRecipe (ItemStack output, Object...params) |
|
static void | addShapelessRecipe (ItemStack output, Object...params) |
|
static void | addRecipe (IRecipe recipe) |
|
static void | addSmelting (int input, ItemStack output, float xp) |
|
static void | registerTileEntity (Class<?extends TileEntity > tileEntityClass, String id) |
|
static void | registerTileEntityWithAlternatives (Class<?extends TileEntity > tileEntityClass, String id, String...alternatives) |
|
static void | addBiome (BiomeGenBase biome) |
|
static void | removeBiome (BiomeGenBase biome) |
|
static void | registerFuelHandler (IFuelHandler handler) |
|
static int | getFuelValue (ItemStack itemStack) |
|
static void | registerCraftingHandler (ICraftingHandler handler) |
|
static void | onItemCrafted (EntityPlayer player, ItemStack item, IInventory craftMatrix) |
|
static void | onItemSmelted (EntityPlayer player, ItemStack item) |
|
static void | registerPickupHandler (IPickupNotifier handler) |
|
static void | onPickupNotification (EntityPlayer player, EntityItem item) |
|
static void | registerPlayerTracker (IPlayerTracker tracker) |
|
static void | onPlayerLogin (EntityPlayer player) |
|
static void | onPlayerLogout (EntityPlayer player) |
|
static void | onPlayerChangedDimension (EntityPlayer player) |
|
static void | onPlayerRespawn (EntityPlayer player) |
|
static net.minecraft.block.Block | findBlock (String modId, String name) |
|
static net.minecraft.item.Item | findItem (String modId, String name) |
|
static void | registerCustomItemStack (String name, ItemStack itemStack) |
|
static ItemStack | findItemStack (String modId, String name, int stackSize) |
|
static ItemStack cpw.mods.fml.common.registry.GameRegistry.findItemStack |
( |
String |
modId, |
|
|
String |
name, |
|
|
int |
stackSize |
|
) |
| |
|
static |
Lookup an itemstack based on mod and name. It will create "default" itemstacks from blocks and items if no explicit itemstack is found.
If it is built from a block, the metadata is by default the "wildcard" value.
Custom itemstacks can be dumped from minecraft by setting the system property fml.dumpRegistry to true (-Dfml.dumpRegistry=true on the command line will work)
- Parameters
-
modId | The modid of the stack owner |
name | The name of the stack |
stackSize | The size of the stack returned |
- Returns
- The custom itemstack or null if no such itemstack was found