Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.madcrazydrumma;
- import java.util.ArrayList;
- import net.madcrazydrumma.gui.InGameOverlay;
- import net.madcrazydrumma.item.ItemHandler;
- import net.madcrazydrumma.keys.KeyBindings;
- import net.madcrazydrumma.packet.SkillExecutionPacket;
- import net.madcrazydrumma.packet.SkillFailedPacket;
- import net.madcrazydrumma.packet.SkillSuccessPacket;
- import net.madcrazydrumma.skill.BladeOfTheExile;
- import net.madcrazydrumma.skill.BrokenWings;
- import net.madcrazydrumma.skill.ISkill;
- import net.madcrazydrumma.skill.KiBurst;
- import net.madcrazydrumma.skill.Valor;
- import net.minecraftforge.common.MinecraftForge;
- import net.minecraftforge.fml.common.FMLCommonHandler;
- import net.minecraftforge.fml.common.Mod;
- import net.minecraftforge.fml.common.Mod.EventHandler;
- import net.minecraftforge.fml.common.event.FMLInitializationEvent;
- import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
- import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
- import net.minecraftforge.fml.common.network.NetworkRegistry;
- import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;
- import net.minecraftforge.fml.relauncher.Side;
- @Mod(modid = RivenMod.MODID, version = RivenMod.VERSION)
- public class RivenMod
- {
- public static final String MODID = "rivenmod";
- public static final String VERSION = "1.0";
- public static ArrayList<ISkill> skillList;
- public static final SimpleNetworkWrapper SNW_INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel(MODID);
- @EventHandler
- public void preInit(FMLPreInitializationEvent event) {
- KeyBindings.init();
- FMLCommonHandler.instance().bus().register(new InGameOverlay());
- SNW_INSTANCE.registerMessage(SkillExecutionPacket.SkillExecutionPacketHandler.class, SkillExecutionPacket.class, 0, Side.SERVER);
- SNW_INSTANCE.registerMessage(SkillFailedPacket.SkillFailedPacketHandler.class, SkillFailedPacket.class, 1, Side.CLIENT);
- SNW_INSTANCE.registerMessage(SkillSuccessPacket.SkillSuccessPacketHandler.class, SkillSuccessPacket.class, 2, Side.CLIENT);
- }
- @EventHandler
- public void postInit(FMLPostInitializationEvent event) {
- MinecraftForge.EVENT_BUS.register(new InGameOverlay());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement