mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-11-22 04:52:28 +00:00
Initial commit
This commit is contained in:
commit
e37de23340
41 files changed
+2123
No files matched your search
@@ -0,0 +1,47 @@
|
||||
package baubles.common;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
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)});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user