| package com.harrypotter.sosoh.common; |
| |
| import com.harrypotter.sosoh.common.blocks.BlockChaudron; |
| import com.harrypotter.sosoh.common.blocks.TileEntityChaudron; |
| import com.harrypotter.sosoh.common.creativetabs.CreativeTabsHPB; |
| import com.harrypotter.sosoh.common.creativetabs.CreativeTabsHPF; |
| import com.harrypotter.sosoh.common.creativetabs.CreativeTabsHPP; |
| import com.harrypotter.sosoh.common.items.ItemBaguette1; |
| import com.harrypotter.sosoh.common.items.ItemBaguette2; |
| import com.harrypotter.sosoh.common.items.ItemBaguette3; |
| import com.harrypotter.sosoh.common.items.ItemBiere; |
| import com.harrypotter.sosoh.common.items.ItemChocogrenouille; |
| import com.harrypotter.sosoh.common.items.ItemChope; |
| import com.harrypotter.sosoh.common.items.ItemDragees; |
| import com.harrypotter.sosoh.common.items.ItemJusCitrouille; |
| import com.harrypotter.sosoh.common.items.ItemPaquetDragees; |
| import com.harrypotter.sosoh.common.items.ItemRhumGroseille; |
| import com.harrypotter.sosoh.common.items.ItemSucacide; |
| import com.harrypotter.sosoh.common.items.ItemTabletteChocolat; |
| import com.harrypotter.sosoh.common.items.ItemVerreVide; |
| import com.harrypotter.sosoh.common.items.ItemVinOrtie; |
| import com.harrypotter.sosoh.common.items.ItemVinSureau; |
| import com.harrypotter.sosoh.proxy.CommonProxy; |
| |
| import net.minecraft.block.Block; |
| import net.minecraft.block.material.Material; |
| import net.minecraft.creativetab.CreativeTabs; |
| import net.minecraft.enchantment.Enchantment; |
| import net.minecraft.item.Item; |
| import net.minecraft.potion.Potion; |
| import net.minecraftforge.common.MinecraftForge; |
| import cpw.mods.fml.common.FMLCommonHandler; |
| import cpw.mods.fml.common.Mod; |
| import cpw.mods.fml.common.Mod.EventHandler; |
| import cpw.mods.fml.common.Mod.Instance; |
| 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; |
| |
| @Mod(modid = "modharrypotter", name = "Mod Harry Potter", version = "1.0.0") |
| |
| public class ModHarryPotter{ |
| |
| |
| public static Item itemChocogrenouille, itemPaquetDragees, itemDragees, itemSucacide, itemTabletteChocolat, itemVerreVide, itemVinOrtie, itemVinSureau, itemChope, itemBiere, itemRhumGroseille, itemJusCitrouille; |
| |
| |
| public static Item itemBaguette1, itemBaguette2, itemBaguette3; |
| |
| |
| |
| |
| public static Block blockChaudron; |
| public static Item itemPotionTueLoup; |
| |
| |
| public static CreativeTabs creativetabsHPF, creativetabsHPB, creativetabsHPP; |
| |
| |
| |
| public static final String MODID = "modharrypotter"; |
| |
| @Instance("modharrypotter") |
| public static ModHarryPotter instance; |
| |
| @SidedProxy(clientSide = "com.harrypotter.sosoh.proxy.ClientProxy", serverSide = "com.harrypotter.sosoh.proxy.CommonProxy") |
| public static CommonProxy proxy; |
| |
| @EventHandler |
| public void preInit(FMLPreInitializationEvent event) |
| { |
| |
| |
| creativetabsHPF = new CreativeTabsHPF("creative_tabs_hpf"); |
| creativetabsHPB = new CreativeTabsHPB("creative_tabs_hpb"); |
| creativetabsHPP = new CreativeTabsHPP("creative_tabs_hpp"); |
| |
| |
| |
| itemChocogrenouille = new ItemChocogrenouille(6,0.5F,false).setUnlocalizedName("chocogrenouille"); |
| GameRegistry.registerItem(itemChocogrenouille, "item_chocogrenouille", ModHarryPotter.MODID); |
| |
| itemDragees = new ItemDragees(1,0.4F,false).setUnlocalizedName("dragees"); |
| GameRegistry.registerItem(itemDragees, "item_dragees", ModHarryPotter.MODID); |
| |
| itemPaquetDragees = new ItemPaquetDragees().setUnlocalizedName("paquetdragees"); |
| GameRegistry.registerItem(itemPaquetDragees, "item_paquet_dragees", ModHarryPotter.MODID); |
| |
| itemSucacide = new ItemSucacide(3, 0.5F, false).setUnlocalizedName("sucacide"); |
| GameRegistry.registerItem(itemSucacide, "item_sucacide", ModHarryPotter.MODID); |
| |
| itemTabletteChocolat = new ItemTabletteChocolat(4,1.0F,false).setUnlocalizedName("tablettechocolat"); |
| GameRegistry.registerItem(itemTabletteChocolat, "item_tablettechocolat", ModHarryPotter.MODID); |
| |
| itemVerreVide = new ItemVerreVide().setUnlocalizedName("verrevide"); |
| GameRegistry.registerItem(itemVerreVide, "item_verrevide", ModHarryPotter.MODID); |
| |
| itemVinOrtie = new ItemVinOrtie(4, 0.6F, false).setUnlocalizedName("vinortie"); |
| GameRegistry.registerItem(itemVinOrtie, "item_vinortie", ModHarryPotter.MODID); |
| |
| itemVinSureau = new ItemVinSureau(4, 0.8F, false).setUnlocalizedName("vinsureau"); |
| GameRegistry.registerItem(itemVinSureau, "item_vinsureau", ModHarryPotter.MODID); |
| |
| itemBiere = new ItemBiere(6, 0.7F, false).setUnlocalizedName("biere"); |
| GameRegistry.registerItem(itemBiere, "item_biere", ModHarryPotter.MODID); |
| |
| itemChope = new ItemChope().setUnlocalizedName("chope"); |
| GameRegistry.registerItem(itemChope, "item_chope", ModHarryPotter.MODID); |
| |
| itemRhumGroseille = new ItemRhumGroseille(6, 0.7F, false).setUnlocalizedName("rhumgroseille"); |
| GameRegistry.registerItem(itemRhumGroseille, "item_rhumgroseille", ModHarryPotter.MODID); |
| |
| itemJusCitrouille = new ItemJusCitrouille(3, 1.0F, false).setUnlocalizedName("juscitrouille"); |
| GameRegistry.registerItem(itemJusCitrouille, "item_juscitrouille", ModHarryPotter.MODID); |
| |
| |
| |
| itemBaguette1 = new ItemBaguette1().setUnlocalizedName("baguette1"); |
| GameRegistry.registerItem(itemBaguette1, "item_baguette_1", ModHarryPotter.MODID); |
| |
| itemBaguette2 = new ItemBaguette2().setUnlocalizedName("baguette2"); |
| GameRegistry.registerItem(itemBaguette2, "item_baguette_2", ModHarryPotter.MODID); |
| |
| itemBaguette3 = new ItemBaguette3().setUnlocalizedName("baguette3"); |
| GameRegistry.registerItem(itemBaguette3, "item_baguette_3", ModHarryPotter.MODID); |
| |
| |
| |
| |
| |
| blockChaudron = new BlockChaudron(Material.iron).setBlockName("chaudron"); |
| GameRegistry.registerBlock(blockChaudron, "block_chaudron"); |
| GameRegistry.registerTileEntity(TileEntityChaudron.class, "ModHarryPotter.MODID:BlockChaudron"); |
| |
| SomniferePotionEffect.SomniferePotionEffectID = 30; |
| |
| } |
| |
| @EventHandler |
| public void init(FMLInitializationEvent event) |
| { |
| proxy.registerRender(); |
| |
| |
| |
| SomniferePotionEffect.loadEffects(); |
| SomniferePotionEffect.register(); |
| |
| MinecraftForge.EVENT_BUS.register(new com.harrypotter.sosoh.common.EventHandler()); |
| } |
| |
| @EventHandler |
| public void postInit(FMLPostInitializationEvent event) |
| { |
| |
| } |
| } |