Package foundry.veil.api.client.render
Class CachedBufferSource
java.lang.Object
foundry.veil.api.client.render.CachedBufferSource
- All Implemented Interfaces:
AutoCloseable
,net.minecraft.client.renderer.MultiBufferSource
,org.lwjgl.system.NativeResource
public class CachedBufferSource
extends Object
implements net.minecraft.client.renderer.MultiBufferSource, org.lwjgl.system.NativeResource
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.renderer.MultiBufferSource
net.minecraft.client.renderer.MultiBufferSource.BufferSource
-
Field Summary
Modifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.objects.Object2ObjectMap
<net.minecraft.client.renderer.RenderType, com.mojang.blaze3d.vertex.ByteBufferBuilder> protected net.minecraft.client.renderer.RenderType
protected final Map
<net.minecraft.client.renderer.RenderType, com.mojang.blaze3d.vertex.BufferBuilder> -
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
Field Details
-
buffers
protected final it.unimi.dsi.fastutil.objects.Object2ObjectMap<net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.vertex.ByteBufferBuilder> buffers -
startedBuilders
protected final Map<net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.vertex.BufferBuilder> startedBuilders
-
-
Constructor Details
-
CachedBufferSource
public CachedBufferSource()
-
-
Method Details
-
getBuffer
public com.mojang.blaze3d.vertex.VertexConsumer getBuffer(net.minecraft.client.renderer.RenderType renderType) - Specified by:
getBuffer
in interfacenet.minecraft.client.renderer.MultiBufferSource
-
free
public void free()- Specified by:
free
in interfaceorg.lwjgl.system.NativeResource
-
endLastBatch
public void endLastBatch() -
endBatch
public void endBatch() -
endBatch
public void endBatch(net.minecraft.client.renderer.RenderType pRenderType)
-