net.minecraft.client.renderer.ViewFrustum Java Examples
The following examples show how to use
net.minecraft.client.renderer.ViewFrustum.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WrapperViewFrustum.java From ClientBase with MIT License | 4 votes |
public WrapperViewFrustum(ViewFrustum var1) { this.real = var1; }
Example #2
Source File: WrapperViewFrustum.java From ClientBase with MIT License | 4 votes |
public ViewFrustum unwrap() { return this.real; }
Example #3
Source File: RenderGlobalSchematic.java From litematica with GNU Lesser General Public License v3.0 | 4 votes |
@Override public void loadRenderers() { World world = this.world; if (world != null) { if (this.renderDispatcher == null) { this.renderDispatcher = new ChunkRenderDispatcherLitematica(); } this.displayListEntitiesDirty = true; this.renderDistanceChunks = this.mc.gameSettings.renderDistanceChunks; boolean vboEnabledPrevious = this.vboEnabled; this.vboEnabled = OpenGlHelper.useVbo(); if (this.vboEnabled == false && vboEnabledPrevious) { this.renderContainer = new RenderListSchematic(); this.renderChunkFactory = new RenderChunkFactoryList(); } else if (this.vboEnabled && vboEnabledPrevious == false) { this.renderContainer = new VboRenderListSchematic(); this.renderChunkFactory = new RenderChunkFactoryVbo(); } if (this.viewFrustum != null) { this.viewFrustum.deleteGlResources(); } this.stopChunkUpdates(); synchronized (this.setTileEntities) { this.setTileEntities.clear(); } this.viewFrustum = new ViewFrustum(world, this.mc.gameSettings.renderDistanceChunks, this, this.renderChunkFactory); Entity entity = this.mc.getRenderViewEntity(); if (entity != null) { this.viewFrustum.updateChunkPositions(entity.posX, entity.posZ); } this.renderEntitiesStartupCounter = 2; } }
Example #4
Source File: LoadRenderersEvent.java From ForgeHax with MIT License | 4 votes |
public LoadRenderersEvent(ViewFrustum viewFrustum, ChunkRenderDispatcher renderDispatcher) { this.viewFrustum = viewFrustum; this.renderDispatcher = renderDispatcher; }
Example #5
Source File: LoadRenderersEvent.java From ForgeHax with MIT License | 4 votes |
public ViewFrustum getViewFrustum() { return viewFrustum; }
Example #6
Source File: ForgeHaxHooks.java From ForgeHax with MIT License | 4 votes |
public static void onLoadRenderers( ViewFrustum viewFrustum, ChunkRenderDispatcher renderDispatcher) { if (HOOK_onLoadRenderers.reportHook()) { MinecraftForge.EVENT_BUS.post(new LoadRenderersEvent(viewFrustum, renderDispatcher)); } }