public static Block addBlock(String name, Block block) { // System.out.printf("%s: Adding block %s id %s\n", modName, name, // block.blockID); block.setUnlocalizedName("gcewing." + idToName.get(block.blockID)); GameRegistry.registerBlock(block); LanguageRegistry.addName(block, name); return block; }
public static void addSmeltingRecipe(Item product, int qty, Block input) { GameRegistry.addSmelting(input.blockID, new ItemStack(product, qty), 0); }
public static void addRecipe(Block product, int qty, Object... params) { GameRegistry.addRecipe(new ItemStack(product, qty), params); }
public static void addShapelessRecipe(Item product, int qty, Object... params) { GameRegistry.addShapelessRecipe(new ItemStack(product, qty), params); }
void registerTileEntities() { GameRegistry.registerTileEntity(TEFloodlightBeam.class, "gcewing.FloodlightBeam"); }