import cpw.mods.fml.common.*;
import cpw.mods.fml.common.Mod.*;
import cpw.mods.fml.common.event.*;
import cpw.mods.fml.common.registry.*;
import net.minecraft.block.Block;
import net.minecraft.creativetab.*;
import net.minecraft.init.*;
import net.minecraft.item.*;
import net.minecraft.item.Item.*;
import net.minecraftforge.common.util.*;
import ru.denik.block.*;
import ru.denik.item.*;
import ru.denik.world.*;
@Mod (modid = "Vanila", name="Vanila", version = "1.0")
public class MainClass {
public static CreativeTabs tabPlugin = new TabPlugin(CreativeTabs.getNextID(),"CreativeTab");
public static Item appleblue = new AppleBlue(2530, 6, 0.5F, true).setUnlocalizedName("appleblue");
public static Item leadingot = new LeadIngot(2531).setUnlocalizedName("leadingot");
public static Item leadsword = new LeadSword();
public static Item leadaxe = new LeadAxe();
public static Item leadpickaxe = new LeadPickaxe();
public static Item leadhoe = new LeadHoe();
public static Item leadshovel = new LeadShovel();
public static Item leadhelmet = new LeadArmor(0, 0).setUnlocalizedName("leadhelmet");
public static Item leadchestplate = new LeadArmor(0, 1).setUnlocalizedName("leadchestplate");
public static Item leadleggings = new LeadArmor(0, 2).setUnlocalizedName("leadleggings");
public static Item leadboots = new LeadArmor(0, 3).setUnlocalizedName("leadboots");
public static Block leadore = new LeadOre(2630);
@EventHandler
public void preLoad(FMLPreInitializationEvent e) {
appleblue.setTextureName("vanila:apple_blue");
leadore.setBlockTextureName("vanila:lead_ore");
leadingot.setTextureName("vanila:lead_ingot");
leadsword.setTextureName("vanila:lead_sword");
leadaxe.setTextureName("vanila:lead_axe");
leadpickaxe.setTextureName("vanila:lead_pickaxe");
leadhoe.setTextureName("vanila:lead_hoe");
leadshovel.setTextureName("vanila:lead_shovel");
leadhelmet.setTextureName("vanila:lead_helmet");
leadchestplate.setTextureName("vanila:lead_chestplate");
leadleggings.setTextureName("vanila:lead_leggings");
leadboots.setTextureName("vanila:lead_boots");
GameRegistry.registerItem(appleblue, "Синие яблоко");
GameRegistry.registerItem(leadingot, "Свинцовый слиток");
GameRegistry.registerItem(leadsword, "Свинцовый меч");
GameRegistry.registerItem(leadaxe, "Свинцовый топор");
GameRegistry.registerItem(leadpickaxe, "Свинцовая кирка");
GameRegistry.registerItem(leadhoe, "Свинцовая мотыга");
GameRegistry.registerItem(leadshovel, "Свинцовая лопата");
GameRegistry.registerItem(leadhelmet, "leadhelmet");
GameRegistry.registerItem(leadchestplate, "leadchestplate");
GameRegistry.registerItem(leadleggings, "leadleggings");
GameRegistry.registerItem(leadboots, "leadboots");
GameRegistry.registerBlock(leadore, "Свинцовая руда");
}
@EventHandler
public void load(FMLInitializationEvent event) {
LanguageRegistry.addName(appleblue, "Синие яблоко");
LanguageRegistry.addName(leadore, "Свинцовая руда");
LanguageRegistry.addName(leadingot, "Свинцовый слиток");
LanguageRegistry.addName(leadsword, "Свинцовый Меч");
LanguageRegistry.addName(leadaxe, "Свинцовый топор");
LanguageRegistry.addName(leadpickaxe, "Свинцовая кирка");
LanguageRegistry.addName(leadhoe, "Свинцовая мотыга");
LanguageRegistry.addName(leadshovel, "Свинцовая лопата");
LanguageRegistry.addName(leadhelmet, "Свинцовый шлем");
LanguageRegistry.addName(leadchestplate, "Свинцовый нагрудник");
LanguageRegistry.addName(leadleggings, "Свинцовые поножи");
LanguageRegistry.addName(leadboots, "Свинцовые ботинки");
GameRegistry.addRecipe(new ItemStack(MainClass.appleblue, 2),
new Object[]{ "AAA", "ABA", "AAA",
('A'), new ItemStack(Items.dye, 1, 4), ('B'), Items.apple});
GameRegistry.addRecipe(new ItemStack(MainClass.leadsword),
new Object[]{ " A ", " A ", " B ",
('A'), new ItemStack(MainClass.leadingot), ('B'), Items.stick});
GameRegistry.addRecipe(new ItemStack(MainClass.leadaxe),
new Object[]{ "AA ", "AB ", " B ",
('A'), new ItemStack(MainClass.leadingot), ('B'), Items.stick});
GameRegistry.addRecipe(new ItemStack(MainClass.leadpickaxe),
new Object[]{ "AAA", " B ", " B ",
('A'), new ItemStack(MainClass.leadingot), ('B'), Items.stick});
GameRegistry.addRecipe(new ItemStack(MainClass.leadhoe),
new Object[]{ "AA ", " B ", " B ",
('A'), new ItemStack(MainClass.leadingot), ('B'), Items.stick});
GameRegistry.addRecipe(new ItemStack(MainClass.leadshovel),
new Object[]{ " A ", " B ", " B ",
('A'), new ItemStack(MainClass.leadingot), ('B'), Items.stick});
GameRegistry.addRecipe(new ItemStack(MainClass.leadhelmet),
new Object[]{ "AAA", "A A", " ",
('A'), new ItemStack(MainClass.leadingot)});
GameRegistry.addRecipe(new ItemStack(MainClass.leadchestplate),
new Object[]{ "A A", "AAA", "AAA",
('A'), new ItemStack(MainClass.leadingot)});
GameRegistry.addRecipe(new ItemStack(MainClass.leadleggings),
new Object[]{ "AAA", "A A", "A A",
('A'), new ItemStack(MainClass.leadingot)});
GameRegistry.addRecipe(new ItemStack(MainClass.leadboots),
new Object[]{ " ", "A A", "A A",
('A'), new ItemStack(MainClass.leadingot)});
GameRegistry.addSmelting(leadore, new ItemStack(MainClass.leadingot, 2), 2.0F);
}
}