java.lang.Object
team.lodestar.lodestone.systems.rendering.vertexconsumer.VertexConsumerWrapper
team.lodestar.lodestone.systems.rendering.vertexconsumer.MultiVertexConsumer
All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer, net.neoforged.neoforge.client.extensions.IVertexConsumerExtension
Direct Known Subclasses:
UVOffsetMultiVertexConsumer

public class MultiVertexConsumer extends VertexConsumerWrapper
A VertexConsumer that forwards all calls to multiple other VertexConsumers.

Useful for rendering the same geometry to multiple buffers.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.mojang.blaze3d.vertex.VertexConsumer[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MultiVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer... consumers)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.blaze3d.vertex.VertexConsumer[]
     

    Methods inherited from class team.lodestar.lodestone.systems.rendering.vertexconsumer.VertexConsumerWrapper

    addVertex, setColor, setNormal, setUv, setUv1, setUv2

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.neoforged.neoforge.client.extensions.IVertexConsumerExtension

    applyBakedLighting, applyBakedNormals, misc, putBulkData

    Methods inherited from interface com.mojang.blaze3d.vertex.VertexConsumer

    addVertex, addVertex, addVertex, addVertex, addVertex, putBulkData, putBulkData, setColor, setColor, setLight, setNormal, setOverlay, setWhiteAlpha
  • Field Details

    • consumers

      protected final com.mojang.blaze3d.vertex.VertexConsumer[] consumers
  • Constructor Details

    • MultiVertexConsumer

      public MultiVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer... consumers)
  • Method Details