Posted May 21, 201411 yr Hello I have made a tick handler with the PlayerTickEvent and I have every thing setup, but when I went to test it I found out that the event is not being initialized. I use this: MinecraftForge.EVENT_BUS.register(new RCTickHandler()); to initialize it and this is my method : @SubscribeEvent public void PlayerTickEvent(PlayerTickEvent event) { System.out.println("tetstjlfjsdjfsjfd"); if(event.side.equals(event.side.CLIENT)) TickPlayerClient(event.player); if(event.side.equals(event.side.SERVER)) TickPlayerServer((EntityPlayerMP) event.player); } The method doesn't print anything out. Also I believe that I am initializing it in the right place because all of my other event stuff works fine. Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!
May 22, 201411 yr TickEvents are not registered to the MinecraftForge.EVENT_BUS, but to the FML bus: FMLCommonHandler.instance().bus().register(new YourTickHandler()); http://i.imgur.com/NdrFdld.png[/img]
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.