Code (java):
package WarcraftIII;
import com.google.common.collect.Ranges;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraftforge.common.EnumHelper;
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.network.NetworkMod;
@Mod(modid = "WarcraftIII", name = "World of Warcraft", version = "1.0.0", acceptedMinecraftVersions = "[1.6.2,)")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class WarcraftIII
{
@SidedProxy(clientSide = "WarcraftIII.WarcraftIIIClientProxy", serverSide = "WarcraftIII.WarcraftIIICommonProxy")
public static WarcraftIIICommonProxy proxy;
@Instance("WarcraftIII")
//Table Creative
public static CreativeTabs WarcraftCreativeTabs = new WarcraftCreativeTabs("WarcraftCreativeTabs");
//items
public static WarcraftIII instance;
public static Item SoulShard;
public static Item Pierredelumiere;
public static Item Pierredombre;
public static Item Runes;
public static Item Lingotdesulfuron;
public static Item Mineraidelementium;
public static Item Barredelementium;
public static Item Lienducherchevent;
public static Item Essencedufleau;
public static Item Poignee;
public static Item Garde;
public static Item Lame;
//Swords
public static Item Frostmourne;
public static Item Sulfuras;
public static Item Ashbringer;
public static Item Co_Ashbringer;
public static Item LameTonnerre;
public static Item ValAnyr;
public static Item LameRunique;
public static Item shadowmourne;
public static Item Shallator;
public static Item Ellamayne;
public static Item Shalamayne;
//Armors
//Mobs
//Materiel
static EnumToolMaterial Legendaire = EnumHelper.addToolMaterial("Legendaire", 3, 25000, 8.0F, 5, 22);
static EnumToolMaterial Epique = EnumHelper.addToolMaterial("Epique", 3, 10000, 8.0F, 4.5F, 15);
static EnumToolMaterial Runique = EnumHelper.addToolMaterial("Runique", 2, 300, 6.0F, 2.0F, 25);
@EventHandler
public void PreInit(FMLPreInitializationEvent event)
{
//items
SoulShard = new SoulShard(12000).setUnlocalizedName("SoulShard").setTextureName("warcraftiii:SoulShard");
Pierredelumiere = new Pierredelumiere(12001).setUnlocalizedName("Pierredelumiere").setTextureName("warcraftiii:Pierredelumiere");
Pierredombre = new Pierredombre(12002).setUnlocalizedName("Pierredombre").setTextureName("warcraftiii:Pierredombre");
Runes = new Runes(12003).setUnlocalizedName("Runes").setTextureName("warcraftiii:Runes");
Lingotdesulfuron = new Lingotdesulfuron(12004).setUnlocalizedName("Lingotdesulfuron").setTextureName("warcraftiii:Lingotdesulfuron");
Mineraidelementium = new Mineraidelementium(12005).setUnlocalizedName("Mineraidelementium").setTextureName("warcraftiii:Mineraidelementium");
Barredelementium = new Barredelementium(12006).setUnlocalizedName("Barredelementium").setTextureName("warcraftiii:Barredelementium");
//Swords
Frostmourne = new Frostmourne(13000, Legendaire).setUnlocalizedName("Frostmourne").setTextureName("warcraftiii:Frostmourne");
Sulfuras = new Sulfuras(13001, Legendaire).setUnlocalizedName("Sulfuras").setTextureName("warcraftiii:Sulfuras");
Ashbringer = new ashbringer(13002, Epique).setUnlocalizedName("ashbringer").setTextureName("warcraftiii:ashbringer");
Co_Ashbringer = new ashbringercorrupted(13003, Epique).setUnlocalizedName("ashbringercorrupted").setTextureName("warcraftiii:ashbringercorrupted");
LameTonnerre = new LameTonnerre(13004, Legendaire).setUnlocalizedName("LameTonnerre").setTextureName("warcraftiii:LameTonnerre");
ValAnyr = new ValAnyr(13005, Legendaire).setUnlocalizedName("ValAnyr").setTextureName("warcraftiii:ValAnyr");
LameRunique = new LameRunique(13006, Runique).setUnlocalizedName("LameRunique").setTextureName("warcraftiii:LameRunique");
shadowmourne = new shadowmourne(13007, Legendaire).setUnlocalizedName("shadowmourne").setTextureName("warcraftiii:shadowmourne");
Shallator = new Shallator(13008, Epique).setUnlocalizedName("Shallator").setTextureName("warcraftiii:Shallator");
Ellamayne = new Ellamayne(13009, Epique).setUnlocalizedName("Ellamayne").setTextureName("warcraftiii:Ellamayne");
Shalamayne = new Shalamayne(13010, Legendaire).setUnlocalizedName("Shalamayne").setTextureName("warcraftiii:Shalamayne");
//Armors
//Mobs
}
@EventHandler
public void Init(FMLInitializationEvent event)
{
}
@EventHandler
public void PostInit(FMLPostInitializationEvent event)
{
}
}[/code=java]
Code (java):
package WarcraftIII;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
public class WarcraftCreativeTabs
extends CreativeTabs
{
public WarcraftCreativeTabs
(String label
) {
super(label
);
// TODO Auto-generated constructor stub
}
@Override
public ItemStack getIconItemStack
()
{
return new ItemStack
(WarcraftIII.
Frostmourne);
}
}
[/code
=java
]