public static void onPreRenderWorld(WorldRenderer worldRenderer, int pass) { if(worldRendererRB != null) { worldRenderPass = pass; MinecraftForge.EVENT_BUS.post(new RenderWorldEvent.Pre(worldRenderer, (ChunkCache)worldRendererRB.field_147845_a, worldRendererRB, pass)); } }
public static void onPostRenderWorld(WorldRenderer worldRenderer, int pass) { if(worldRendererRB != null) { MinecraftForge.EVENT_BUS.post(new RenderWorldEvent.Post(worldRenderer, (ChunkCache)worldRendererRB.field_147845_a, worldRendererRB, pass)); worldRenderPass = -1; } }
public static void onPreRenderWorld(WorldRenderer worldRenderer, int pass) { if(worldRendererRB != null) { worldRenderPass = pass; MinecraftForge.EVENT_BUS.post(new RenderWorldEvent.Pre(worldRenderer, (ChunkCache)worldRendererRB.blockAccess, worldRendererRB, pass)); } }
public static void onPostRenderWorld(WorldRenderer worldRenderer, int pass) { if(worldRendererRB != null) { MinecraftForge.EVENT_BUS.post(new RenderWorldEvent.Post(worldRenderer, (ChunkCache)worldRendererRB.blockAccess, worldRendererRB, pass)); worldRenderPass = -1; } }
@SubscribeEvent public void onClientRender(RenderWorldEvent.Pre event) { Runnable r; while ((r = DaVincing.glTasks.poll()) != null) { try { r.run(); } catch (Throwable t) { DaVincing.log.error("[ProxyClient.onClientRender] failed", t); } } }