Java 类net.minecraftforge.client.event.RenderWorldEvent 实例源码

项目:TRHS_Club_Mod_2016    文件:ForgeHooksClient.java   
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));
    }
}
项目:TRHS_Club_Mod_2016    文件:ForgeHooksClient.java   
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;
    }
}
项目:CauldronGit    文件:ForgeHooksClient.java   
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));
    }
}
项目:CauldronGit    文件:ForgeHooksClient.java   
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;
    }
}
项目:DaVincing    文件:ProxyClient.java   
@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);
    }
  }
}
项目:Cauldron    文件:ForgeHooksClient.java   
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));
    }
}
项目:Cauldron    文件:ForgeHooksClient.java   
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;
    }
}
项目:Cauldron    文件:ForgeHooksClient.java   
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));
    }
}
项目:Cauldron    文件:ForgeHooksClient.java   
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;
    }
}
项目:Cauldron    文件:ForgeHooksClient.java   
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));
    }
}
项目:Cauldron    文件:ForgeHooksClient.java   
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;
    }
}