Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Mod(modid = "adframe", name = "AdvancedFrame by RedEnergy", version = "1.0-indev")
- public class Core {
- public static final ItemHangingEntity advancedFrame = (ItemHangingEntity) new ItemAdvancedFrame(EntityAdvancedFrame.class);
- @Mod.Instance
- public static Core instance;
- @Mod.EventHandler
- public void preInit(FMLPreInitializationEvent e)
- {
- if(e.getSide() == Side.CLIENT)
- {
- RenderingRegistry.registerEntityRenderingHandler(EntityAdvancedFrame.class, new RenderAdvancedFrame());
- }
- GameRegistry.registerItem(advancedFrame, "advancedFrame");
- EntityRegistry.registerModEntity(EntityAdvancedFrame.class, "advancedFrameEnt", EntityRegistry.findGlobalUniqueEntityId(), this.instance, 80, 3, true);
- e.getModLog().log(Level.INFO, "Mod has been successfuly pre-loaded, stay happy.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment