Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.assassin.Main;
- import com.assassin.lib.*;
- import net.minecraft.entity.Entity;
- import com.assassin.help.RegisterHelper;
- import com.assassin.item.*;
- import cpw.mods.fml.client.registry.RenderingRegistry;
- import cpw.mods.fml.common.Mod;
- import cpw.mods.fml.common.Mod.EventHandler;
- import cpw.mods.fml.common.SidedProxy;
- import cpw.mods.fml.common.event.FMLInitializationEvent;
- import cpw.mods.fml.common.event.FMLPostInitializationEvent;
- import cpw.mods.fml.common.event.FMLPreInitializationEvent;
- import cpw.mods.fml.common.registry.GameRegistry;
- import net.minecraft.block.Block;
- import net.minecraft.block.material.Material;
- import net.minecraft.client.gui.inventory.GuiFurnace;
- import net.minecraft.init.Blocks;
- import net.minecraft.init.Items;
- import net.minecraft.item.Item;
- import net.minecraft.item.ItemStack;
- import net.minecraft.item.Item.ToolMaterial;
- import net.minecraft.item.ItemArmor;
- import net.minecraft.item.ItemArmor.ArmorMaterial;
- import net.minecraftforge.common.util.EnumHelper;
- import com.assassin.blocks.*;
- @Mod(modid = RefStrings.MODID , name = RefStrings.NAME , version = RefStrings.VERSION )
- public class MainRegistry {
- @SidedProxy(clientSide = RefStrings.CLIENTSIDE , serverSide = RefStrings.SERVERSIDE )
- public static ServerProxy proxy;
- //Item declarations
- //Hardened Steel
- public static Item HSteelPickaxe;
- public static Item HSteelShovel;
- public static Item HSteelAxe;
- public static Item HSteelSword;
- public static Item HSteelHelmet;
- public static Item HSteelChestplate;
- public static Item HSteelLeggings;
- public static Item HSteelBoots;
- public static ArmorMaterial hsteelarmor = EnumHelper.addArmorMaterial("hsteel", 25, new int[] {3, 8, 6, 3}, 25);
- @EventHandler
- public static void PreLoad(FMLPreInitializationEvent PreEvent) {
- HSteelIngot.mainRegistry();
- HSteelFurnace.mainRegistry();
- proxy.registerRenderInfo();
- //EnumHelper
- final ToolMaterial HSTEEL = EnumHelper.addToolMaterial("HSTEEL", 3, 800, 10.0F, 3.0F, 25);
- //Tools and sword
- //Hardened Steel
- //Pickaxe
- HSteelPickaxe = new ItemHSteelPickaxe(HSTEEL);
- RegisterHelper.registerItem(HSteelPickaxe);
- GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelPickaxe), new Object[] {"***", " # ", " # ", '*', HSteelIngot.hsteelingot, '#', Items.stick});
- //Shovel
- HSteelShovel = new ItemHSteelShovel(HSTEEL);
- RegisterHelper.registerItem(HSteelShovel);
- GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelShovel), new Object[] {" * ", " # ", " # ", '*', HSteelIngot.hsteelingot, '#', Items.stick});
- //Axe
- HSteelAxe = new ItemHSteelAxe(HSTEEL);
- RegisterHelper.registerItem(HSteelAxe);
- GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelAxe), new Object[] {"** ", "*# ", " # ", '*', HSteelIngot.hsteelingot, '#', Items.stick});
- //Sword
- HSteelSword = new ItemHSteelSword(HSTEEL);
- RegisterHelper.registerItem(HSteelSword);
- GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelSword), new Object[] {" * ", " * ", " # ", '*', HSteelIngot.hsteelingot, '#', Items.stick});
- //Armor
- //Helmet
- HSteelHelmet = new ItemHSteelHelmet(hsteelarmor);
- RegisterHelper.registerItem(HSteelHelmet);
- GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelHelmet), new Object[] {"***", "* *", " ", '*', HSteelIngot.hsteelingot});
- //Chestplate
- HSteelChestplate = new ItemHSteelChestplate(hsteelarmor);
- RegisterHelper.registerItem(HSteelChestplate);
- GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelChestplate), new Object [] {"* *", "***", "***", '*', HSteelIngot.hsteelingot});
- //Leggings
- HSteelLeggings = new ItemHSteelLeggings(hsteelarmor);
- RegisterHelper.registerItem(HSteelLeggings);
- GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelLeggings), new Object [] {"***", "* *", "* *", '*', HSteelIngot.hsteelingot});
- //Boots
- HSteelBoots = new ItemHSteelBoots(hsteelarmor);
- RegisterHelper.registerItem(HSteelBoots);
- GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelBoots), new Object [] {" ", "* *", "* *", '*', HSteelIngot.hsteelingot});
- //Random
- GameRegistry.addRecipe(new ItemStack(Items.saddle), new Object[] {"***", "*#*", " ", '*', Items.leather, '#', HSteelIngot.hsteelingot});
- GameRegistry.addSmelting(Items.rotten_flesh, new ItemStack(Items.leather), 1.0F);
- }
- @EventHandler
- public static void load(FMLInitializationEvent event) {
- RenderingRegistry.addNewArmourRendererPrefix("hsteel");
- }
Advertisement
Add Comment
Please, Sign In to add comment