@Environment(value=CLIENT) public static class VertexConsumerProvider.Immediate extends Object implements VertexConsumerProvider
VertexConsumerProvider.Immediate
Modifier and Type | Field and Description |
---|---|
protected Set<BufferBuilder> |
activeConsumers |
protected Optional<RenderLayer> |
currentLayer |
protected BufferBuilder |
fallbackBuffer |
protected Map<RenderLayer,BufferBuilder> |
layerBuffers |
Modifier | Constructor and Description |
---|---|
protected |
Immediate(BufferBuilder fallbackBuffer,
Map<RenderLayer,BufferBuilder> layerBuffers) |
Modifier and Type | Method and Description |
---|---|
void |
draw() |
void |
draw(RenderLayer layer) |
VertexConsumer |
getBuffer(RenderLayer layer) |
private BufferBuilder |
getBufferInternal(RenderLayer layer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
immediate, immediate
protected final BufferBuilder fallbackBuffer
protected final Map<RenderLayer,BufferBuilder> layerBuffers
protected Optional<RenderLayer> currentLayer
protected final Set<BufferBuilder> activeConsumers
protected Immediate(BufferBuilder fallbackBuffer, Map<RenderLayer,BufferBuilder> layerBuffers)
public VertexConsumer getBuffer(RenderLayer layer)
getBuffer
in interface VertexConsumerProvider
private BufferBuilder getBufferInternal(RenderLayer layer)
public void draw()
public void draw(RenderLayer layer)