Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.drin.mods.tiny;
- import net.minecraft.src.Block;
- 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.network.NetworkRegistry;
- import cpw.mods.fml.common.registry.GameRegistry;
- import cpw.mods.fml.common.registry.LanguageRegistry;
- @Mod(modid="TinyMod", name="TinyMod", version="0.0")
- @NetworkMod(clientSideRequired=true, serverSideRequired=false)
- public class TinyMod {
- public static Block tinyBlock = new BlockTiny(200);
- @Instance(value = "TinyMod")
- public static TinyMod instance;
- @SidedProxy(clientSide="com.drin.mods.tiny.client.TinyClientProxy", serverSide="com.drin.mods.tiny.TinyCommonProxy")
- public static TinyCommonProxy proxy;
- public static TinyGuiHandler guiHandler = new TinyGuiHandler();
- @PreInit
- public void preInit(FMLPreInitializationEvent event) {
- //
- }
- @Init
- public void init(FMLInitializationEvent event) {
- GameRegistry.registerBlock(tinyBlock);
- GameRegistry.registerTileEntity(TileEntityTiny.class, "tileEntityTiny");
- LanguageRegistry.addName(tinyBlock, "Tiny Block");
- NetworkRegistry.instance().registerGuiHandler(this, guiHandler);
- }
- @PostInit
- public void postInit(FMLPostInitializationEvent event) {
- //
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement