Jump to content

[SOLVED][1.7.2] Anything comparable to RENDER-type TickHandler?


coolAlias

Recommended Posts

You are super helpful, thank you :D

 

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
}

Link to comment
Share on other sites

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 xD

 

EDIT 2: Derp. Just saw RenderTickEvent right under the client one... perfect!

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.