Guest User

Core

a guest
Jan 22nd, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.82 KB | None | 0 0
  1. @Mod(modid = "adframe", name = "AdvancedFrame by RedEnergy", version = "1.0-indev")
  2. public class Core {
  3.    
  4.     public static final ItemHangingEntity advancedFrame = (ItemHangingEntity) new ItemAdvancedFrame(EntityAdvancedFrame.class);
  5.    
  6.     @Mod.Instance
  7.     public static Core instance;
  8.    
  9.     @Mod.EventHandler
  10.     public void preInit(FMLPreInitializationEvent e)
  11.     {
  12.         if(e.getSide() == Side.CLIENT)
  13.         {
  14.             RenderingRegistry.registerEntityRenderingHandler(EntityAdvancedFrame.class, new RenderAdvancedFrame());
  15.         }
  16.        
  17.         GameRegistry.registerItem(advancedFrame, "advancedFrame");
  18.        
  19.         EntityRegistry.registerModEntity(EntityAdvancedFrame.class, "advancedFrameEnt", EntityRegistry.findGlobalUniqueEntityId(), this.instance, 80, 3, true);
  20.        
  21.         e.getModLog().log(Level.INFO, "Mod has been successfuly pre-loaded, stay happy.");
  22.     }
  23.    
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment