Jump to content

Recommended Posts

Posted

Hi

I am currently trying to mess around with the first person arm drawing (maybe seen from an older post, this post has an exception, though) but with an exception - I want to try and do this rendering in an event. When I cancel the RenderHandEvent, the first person player hand is still rendered but when in third person the player is not rendered (the canceled event). Why is that happening? Some other modders believed that the RenderPlayerEvent was not working / being called, but I have tested this and you have to use the subclasses pre / post for that event to be executed. What my real question is, though, which event would you stop the first person render from occuring and how would you start drawing new arms? This has been my only issue so far upon th release of my mod, if it can be achieved I would be pretty happy, any help is highly appreciated, thanks all in advance!

 

@SubscribeEvent
public void renderHandEvent(RenderHandEvent event)
{
    event.setCanceled(true);
    //New render here except that this event cancels the 3rd person render, not the first person hand
}

@SubscribeEvent
public void renderPlayerEvent(RenderPlayerEvent.pre event)
{
    //this event does indeed work, unless my 1.8 release is old
}

Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]

Posted

I'm not going to bother with those events at all, I have got the problem solved and the first person arm modified using the RenderPlayerAPI RenderPlayerBase. This topic is self solved!

Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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