Package baubles.common

Source Code of baubles.common.Config

package baubles.common;

import java.io.File;

import net.minecraft.item.Item;
import net.minecraftforge.common.config.Configuration;
import baubles.common.items.ItemRing;
import cpw.mods.fml.common.registry.GameRegistry;


public class Config {
 
  public static Configuration config;
  public static Item itemRing;
   
  public static void initialize(File file)
    {
    config = new Configuration(file);
        config.load();
       
        itemRing =(new ItemRing()).setUnlocalizedName("Ring");
    GameRegistry.registerItem(itemRing, "Ring", Baubles.MODID);       
       
        //save it
    config.save();
    }

 
  public static void save()
    {
        config.save();
   
   
  public static void initRecipe() { 
//    GameRegistry.addShapedRecipe(
//        new ItemStack(itemRing), new Object[] {
//          "PIP", "IPI", "PIP",
//          Character.valueOf('I'), new ItemStack(Items.iron_ingot),
//          Character.valueOf('P'), new ItemStack(Items.potionitem,1,8226)});
  }
 

 
 
}
TOP

Related Classes of baubles.common.Config

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.