Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.97 KB | None | 0 0
  1. package lotr.common.coremod;
  2.  
  3. import lotr.common.LOTRModInfo;
  4.  
  5. import com.google.common.eventbus.EventBus;
  6.  
  7. import cpw.mods.fml.common.*;
  8. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  9.  
  10. public class LOTRCoremodContainer extends DummyModContainer
  11. {
  12.     public static final String coremodID = LOTRModInfo.modID + "_core";
  13.    
  14.     @Mod.Instance(coremodID)
  15.     public static LOTRCoremodContainer instance;
  16.    
  17.     public LOTRCoremodContainer()
  18.     {
  19.         super(new ModMetadata());
  20.         ModMetadata meta = getMetadata();
  21.         meta.modId = coremodID;
  22.         meta.name = LOTRModInfo.modName + ": Coremod";
  23.         meta.version = LOTRModInfo.version;
  24.         meta.credits = "";
  25.         meta.authorList.add("Mevans");
  26.         meta.description = "";
  27.     }
  28.    
  29.     @Override
  30.     public boolean registerBus(EventBus bus, LoadController controller)
  31.     {
  32.         bus.register(this);
  33.         return true;
  34.     }
  35.  
  36.     @Mod.EventHandler
  37.     public void preInit(FMLPreInitializationEvent event)
  38.     {
  39.         instance = this;
  40.     }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement