Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.iprox.titan.init;
- import cpw.mods.fml.common.registry.GameRegistry;
- import fr.iprox.titan.reference;
- import fr.iprox.titan.items.ItemArmorTitane;
- import fr.iprox.titan.items.ItemAxeTitane;
- import fr.iprox.titan.items.ItemPickaxeTitane;
- import fr.iprox.titan.items.ItemShovelTitane;
- import fr.iprox.titan.items.ItemSwordTitane;
- import net.minecraft.creativetab.CreativeTabs;
- 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.ArmorMaterial;
- import net.minecraftforge.common.util.EnumHelper;
- public class ItemMod {
- public static ToolMaterial toolTitane = EnumHelper.addToolMaterial("toolTitane", 4, 5000, 15, 6, 30);
- public static ArmorMaterial armorTitane = EnumHelper.addArmorMaterial("armorTitane", 50, new int[]{5, 10, 8, 5}, 30);
- public static Item Lingot_De_Titane;
- public static Item item_sword;
- public static Item item_pickaxe;
- public static Item item_axe;
- public static Item casqueArmor;
- public static Item plastronArmor;
- public static Item pantalonArmor;
- public static Item bottesArmor;
- public static Item shovelTitane;
- public static void init()
- {
- Lingot_De_Titane = new Item().setUnlocalizedName("Lingot_De_Titanium") .setCreativeTab(CreativeTabs.tabMaterials) .setTextureName(reference.MOD_ID + ":Lingot_De_Titanium");
- item_sword = new ItemSwordTitane(ItemMod.toolTitane).setCreativeTab(CreativeTabs.tabCombat) .setTextureName(reference.MOD_ID + ":item_sword") .setUnlocalizedName("item_sword");
- item_pickaxe = new ItemPickaxeTitane(ItemMod.toolTitane) .setCreativeTab(CreativeTabs.tabTools) .setTextureName(reference.MOD_ID + ":item_pickaxe") .setUnlocalizedName("item_pickaxe");
- item_axe = new ItemAxeTitane(ItemMod.toolTitane) .setCreativeTab(CreativeTabs.tabTools) .setUnlocalizedName("item_axe") .setTextureName(reference.MOD_ID + ":item_axe");
- casqueArmor = new ItemArmorTitane(armorTitane, 0).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("casqueArmor").setTextureName(reference.MOD_ID + ":casqueArmor");
- plastronArmor = new ItemArmorTitane(armorTitane, 1).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("plastronArmor").setTextureName(reference.MOD_ID + ":plastronArmor");
- pantalonArmor = new ItemArmorTitane(armorTitane, 2).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("pantalonArmor").setTextureName(reference.MOD_ID + ":pantalonArmor");
- bottesArmor = new ItemArmorTitane(armorTitane, 3).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("bottesArmor").setTextureName(reference.MOD_ID + ":bottesArmor");
- shovelTitane = new ItemShovelTitane(ItemMod.toolTitane).setCreativeTab(CreativeTabs.tabTools) .setUnlocalizedName("shovelTitane") .setTextureName(reference.MOD_ID + ":shovelTitane");
- }
- public static void register()
- {
- GameRegistry.registerItem(Lingot_De_Titane, "Lingot_De_Titane");
- GameRegistry.registerItem(item_sword, "item_sword");
- GameRegistry.registerItem(item_pickaxe, "item_pickaxe");
- GameRegistry.registerItem(item_axe, "item_axe");
- GameRegistry.registerItem(casqueArmor, "casqueArmor");
- GameRegistry.registerItem(plastronArmor, "plastronArmor");
- GameRegistry.registerItem(pantalonArmor, "pantalonArmor");
- GameRegistry.registerItem(bottesArmor, "bottesArmor");
- GameRegistry.addRecipe(new ItemStack(ItemMod.casqueArmor, 1), new Object[]{"###", "# #", " ", '#', ItemMod.Lingot_De_Titane});
- GameRegistry.addRecipe(new ItemStack(ItemMod.casqueArmor, 1), new Object[]{" ", "###", "# #", '#', ItemMod.Lingot_De_Titane});
- GameRegistry.addRecipe(new ItemStack(ItemMod.plastronArmor, 1), new Object[]{"# #", "###", "###", '#', ItemMod.Lingot_De_Titane});
- GameRegistry.addRecipe(new ItemStack(ItemMod.pantalonArmor, 1), new Object[]{"###", "# #", "# #", '#', ItemMod.Lingot_De_Titane});
- GameRegistry.addRecipe(new ItemStack(ItemMod.bottesArmor, 1), new Object[]{" ", "# #", "# #", '#', ItemMod.Lingot_De_Titane});
- GameRegistry.addRecipe(new ItemStack(ItemMod.bottesArmor, 1), new Object[]{"# #", "# #", " ", '#', ItemMod.Lingot_De_Titane});
- GameRegistry.addRecipe(new ItemStack(ItemMod.item_sword, 1), new Object[]{" # ", " # ", " L ", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
- GameRegistry.addRecipe(new ItemStack(ItemMod.item_sword, 1), new Object[]{"# ", "# ", "L ", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
- GameRegistry.addRecipe(new ItemStack(ItemMod.item_sword, 1), new Object[]{" #", " #", " L", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
- GameRegistry.addRecipe(new ItemStack(ItemMod.item_pickaxe, 1), new Object[]{"###", " L ", " L ", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
- GameRegistry.addRecipe(new ItemStack(ItemMod.item_axe, 1), new Object[]{"## ", "#L ", " L ", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
- GameRegistry.addRecipe(new ItemStack(ItemMod.item_axe, 1), new Object[]{" ##", " #Lz", " L", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
- GameRegistry.registerItem(shovelTitane, "shovelTitane");
- GameRegistry.addRecipe(new ItemStack(ItemMod.shovelTitane, 1), new Object[]{" # ", " L ", " L ", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
- GameRegistry.addRecipe(new ItemStack(ItemMod.shovelTitane, 1), new Object[]{" #", " L", " L", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
- GameRegistry.addRecipe(new ItemStack(ItemMod.shovelTitane, 1), new Object[]{"# ", "# ", "L v f ", '#', ItemMod.Lingot_De_Titane, 'L', Items.stick});
RAW Paste Data