Class LiquidVertexConsumer

java.lang.Object
guideme.scene.LiquidVertexConsumer
All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer, net.neoforged.neoforge.client.extensions.IVertexConsumerExtension

public class LiquidVertexConsumer extends Object implements com.mojang.blaze3d.vertex.VertexConsumer
Transforms the vertex positions and normals written to it using a pose. It's used for the FluidRenderer, which assumes it is being called in the context of tessellating a chunk section (16x16x16) and emits coordinates relative to the section origin, while we render all visible chunks in the guidebook together. There, the pose is expected to translate to the section origin. It's also used to replay cached scene geometry with a pose.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LiquidVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate, com.mojang.blaze3d.vertex.PoseStack.Pose pose)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.blaze3d.vertex.VertexConsumer
    addVertex(float x, float y, float z)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setColor(int color)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setColor(int r, int g, int b, int a)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setLight(int packedLightCoords)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setLineWidth(float width)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setNormal(float x, float y, float z)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setOverlay(int packedOverlayCoords)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setUv(float u, float v)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setUv1(int u, int v)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setUv2(int u, int v)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setUv3(float u, float v)
     

    Methods inherited from class Object

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

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

    applyBakedNormals, misc, putMutableQuad

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

    addVertex, addVertex, addVertex, addVertex, addVertex, addVertexWith2DPose, putBakedQuad, putBakedQuadWithGlint, putBlockBakedQuad, setColor, setNormal, setNormal
  • Constructor Details

    • LiquidVertexConsumer

      public LiquidVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate, com.mojang.blaze3d.vertex.PoseStack.Pose pose)
  • Method Details

    • addVertex

      public com.mojang.blaze3d.vertex.VertexConsumer addVertex(float x, float y, float z)
      Specified by:
      addVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setColor

      public com.mojang.blaze3d.vertex.VertexConsumer setColor(int r, int g, int b, int a)
      Specified by:
      setColor in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setColor

      public com.mojang.blaze3d.vertex.VertexConsumer setColor(int color)
      Specified by:
      setColor in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setUv

      public com.mojang.blaze3d.vertex.VertexConsumer setUv(float u, float v)
      Specified by:
      setUv in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setUv1

      public com.mojang.blaze3d.vertex.VertexConsumer setUv1(int u, int v)
      Specified by:
      setUv1 in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setUv2

      public com.mojang.blaze3d.vertex.VertexConsumer setUv2(int u, int v)
      Specified by:
      setUv2 in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setUv3

      public com.mojang.blaze3d.vertex.VertexConsumer setUv3(float u, float v)
      Specified by:
      setUv3 in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setNormal

      public com.mojang.blaze3d.vertex.VertexConsumer setNormal(float x, float y, float z)
      Specified by:
      setNormal in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setLight

      public com.mojang.blaze3d.vertex.VertexConsumer setLight(int packedLightCoords)
      Specified by:
      setLight in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setOverlay

      public com.mojang.blaze3d.vertex.VertexConsumer setOverlay(int packedOverlayCoords)
      Specified by:
      setOverlay in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setLineWidth

      public com.mojang.blaze3d.vertex.VertexConsumer setLineWidth(float width)
      Specified by:
      setLineWidth in interface com.mojang.blaze3d.vertex.VertexConsumer