예제 #1
0
 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;
 }
예제 #2
0
 public static void addSmeltingRecipe(Item product, int qty, Block input) {
   GameRegistry.addSmelting(input.blockID, new ItemStack(product, qty), 0);
 }
예제 #3
0
 public static void addRecipe(Block product, int qty, Object... params) {
   GameRegistry.addRecipe(new ItemStack(product, qty), params);
 }
예제 #4
0
 public static void addShapelessRecipe(Item product, int qty, Object... params) {
   GameRegistry.addShapelessRecipe(new ItemStack(product, qty), params);
 }
예제 #5
0
 void registerTileEntities() {
   GameRegistry.registerTileEntity(TEFloodlightBeam.class, "gcewing.FloodlightBeam");
 }