Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.drin.mods;
- import net.minecraft.block.Block;
- import net.minecraft.item.ItemStack;
- import cpw.mods.fml.common.Mod;
- import cpw.mods.fml.common.Mod.Init;
- import cpw.mods.fml.common.Mod.Instance;
- import cpw.mods.fml.common.Mod.PostInit;
- import cpw.mods.fml.common.Mod.PreInit;
- 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;
- import cpw.mods.fml.common.registry.GameRegistry;
- import cpw.mods.fml.common.registry.LanguageRegistry;
- @Mod(modid = LostMod.modid, name = "LOST", version = "1.0")
- @NetworkMod(clientSideRequired = true, serverSideRequired = false)
- public class LostMod {
- public static final String modid = "LOST";
- @Instance("LOST")
- public static LostMod instance = new LostMod();
- @SidedProxy(clientSide = "com.drin.mods.client.ClientProxy", serverSide = "com.drin.mods.CommonProxy")
- public static CommonProxy proxy = new CommonProxy();
- public static Block timerBlock = new BlockTimer(765);
- @PreInit
- public void preInit(FMLPreInitializationEvent event) {
- //GAME REGISTRATIONS
- proxy.registerInformation();
- GameRegistry.registerBlock(timerBlock, ItemBlockTimer.class, "timerBlock");
- //LANGUAGE REGISTRATIONS
- for (int i = 0; i < 15; i++) {
- LanguageRegistry.addName(new ItemStack(timerBlock, 1, i), ItemBlockTimer.subName[i]);
- }
- }
- @Init
- public void init(FMLInitializationEvent event) {
- }
- @PostInit
- public void postInit(FMLPostInitializationEvent event) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement