coolAlias Posted February 13, 2014 Posted February 13, 2014 Title says it all; I haven't found anything comparable to that class yet in 1.7.2, does anyone happen to know how to achieve a similar functionality? Quote http://i.imgur.com/NdrFdld.png[/img]
tattyseal Posted February 13, 2014 Posted February 13, 2014 You now have to use @SubsribeEvent and TickEvent for TickHandlers and it the event should have a Type field in it I think I have helped you twice today lol Quote
coolAlias Posted February 13, 2014 Author Posted February 13, 2014 You are super helpful, thank you One more quick question: is there a way to make sure that I only listen to the RENDER type tick, other than the following? Basically what I'm getting at is before I registered my handler only on the client side, and I'm wondering if that is possible to do with the new setup. Thanks again for sharing your knowledge! @SubscribeEvent public void onRenderTick(TickEvent event) { if (event.type != Type.RENDER) { return; } // do stuff } Quote http://i.imgur.com/NdrFdld.png[/img]
tattyseal Posted February 13, 2014 Posted February 13, 2014 The way you have it is probably the best way. Quote
TLHPoE Posted February 13, 2014 Posted February 13, 2014 I think the events in "net.minecraftforge.client.event" will help you. Quote Kain
coolAlias Posted February 13, 2014 Author Posted February 13, 2014 I register it in the ClientProxy, and yes, I really do want a render tick handler I use it to modify the players movement more smoothly for certain effects, such as dodging, locking on to a target, etc. EDIT: After some more looking around, I found you can use ClientTickEvent as a more specific listener, while of course still checking for the correct type. Should be good enough EDIT 2: Derp. Just saw RenderTickEvent right under the client one... perfect! Quote http://i.imgur.com/NdrFdld.png[/img]
Recommended Posts
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.