SHOW:
|
|
- or go back to the newest paste.
| 1 | package net.minecraft.src; | |
| 2 | ||
| 3 | import net.minecraftforge.client.MinecraftForgeClient; | |
| 4 | import cpw.mods.fml.common.Mod; | |
| 5 | import cpw.mods.fml.common.Mod.Init; | |
| 6 | import cpw.mods.fml.common.Mod.PostInit; | |
| 7 | import cpw.mods.fml.common.Mod.PreInit; | |
| 8 | import cpw.mods.fml.common.event.FMLInitializationEvent; | |
| 9 | import cpw.mods.fml.common.event.FMLPostInitializationEvent; | |
| 10 | import cpw.mods.fml.common.event.FMLPreInitializationEvent; | |
| 11 | import cpw.mods.fml.common.network.IGuiHandler; | |
| 12 | import cpw.mods.fml.common.network.NetworkRegistry; | |
| 13 | import cpw.mods.fml.common.registry.GameRegistry; | |
| 14 | import cpw.mods.fml.common.registry.LanguageRegistry; | |
| 15 | ||
| 16 | @Mod (modid="MechanicTools", name="Mechanic Tools", version="1.3.2") | |
| 17 | public class MechanicTools {
| |
| 18 | ||
| 19 | //public static final Item ratchet = new MechanicRatchet(750).setItemName("ratchet");
| |
| 20 | //public static final Item wrench = new MechanicWrench(751).setItemName("wrench");
| |
| 21 | public static final Item tools = new MechanicTool(752).setItemName("tools");
| |
| 22 | ||
| 23 | public static final Item toolbox = new MechanicToolbox(753).setItemName("toolbox");
| |
| 24 | ||
| 25 | public static final Block blockTiny = new BlockTiny(200); | |
| 26 | ||
| 27 | public static TinyProxy proxy; | |
| 28 | public static MechanicTools instance; | |
| 29 | ||
| 30 | @Init | |
| 31 | public void load(FMLInitializationEvent event) {
| |
| 32 | GameRegistry.registerBlock(blockTiny); | |
| 33 | ||
| 34 | LanguageRegistry.addName(new ItemStack(tools, 1, 0), "Ratchet"); | |
| 35 | LanguageRegistry.addName(new ItemStack(tools, 1, 1), "Wrench"); | |
| 36 | LanguageRegistry.addName(new ItemStack(tools, 1, 2), "Screwdriver"); | |
| 37 | LanguageRegistry.addName(new ItemStack(tools, 1, 3), "Pipe Wrench"); | |
| 38 | LanguageRegistry.addName(new ItemStack(tools, 1, 4), "Hammer"); | |
| 39 | LanguageRegistry.addName(new ItemStack(tools, 1, 5), "Crowbar"); | |
| 40 | LanguageRegistry.addName(new ItemStack(tools, 1, 6), "Tape Measure"); | |
| 41 | LanguageRegistry.addName(new ItemStack(tools, 1, 7), "Vise Grips"); | |
| 42 | LanguageRegistry.addName(new ItemStack(tools, 1, 8), "Pliers"); | |
| 43 | ||
| 44 | LanguageRegistry.addName(blockTiny, "Tiny Block"); | |
| 45 | ||
| 46 | MinecraftForgeClient.preloadTexture("/MechanicTools/items.png");
| |
| 47 | ||
| 48 | NetworkRegistry.instance().registerGuiHandler(this, new TinyHandler()); | |
| 49 | } | |
| 50 | ||
| 51 | @PreInit | |
| 52 | public void preLoad(FMLPreInitializationEvent event) {
| |
| 53 | ||
| 54 | } | |
| 55 | ||
| 56 | @PostInit | |
| 57 | public void postLoad(FMLPostInitializationEvent event) {
| |
| 58 | ||
| 59 | } | |
| 60 | } |