Search in sources :

Example 1 with RenderPlayerEvent

use of cc.hyperium.event.render.RenderPlayerEvent in project Hyperium by HyperiumClient.

the class HyperiumMinecraft method loop.

public void loop(boolean inGameHasFocus, WorldClient theWorld, EntityPlayerSP thePlayer, RenderManager renderManager, Timer timer) {
    if (inGameHasFocus && theWorld != null) {
        HyperiumHandlers handlers = Hyperium.INSTANCE.getHandlers();
        RenderPlayerEvent event = new RenderPlayerEvent(thePlayer, renderManager, renderManager.viewerPosZ, renderManager.viewerPosY, renderManager.viewerPosZ, timer.renderPartialTicks);
        if (handlers != null && Settings.SHOW_PART_1ST_PERSON) {
            handlers.getParticleAuraHandler().renderPlayer(event);
        }
    }
}
Also used : HyperiumHandlers(cc.hyperium.handlers.HyperiumHandlers) RenderPlayerEvent(cc.hyperium.event.render.RenderPlayerEvent)

Aggregations

RenderPlayerEvent (cc.hyperium.event.render.RenderPlayerEvent)1 HyperiumHandlers (cc.hyperium.handlers.HyperiumHandlers)1