Package guideme.scene

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
The only purpose of this vertex consumer proxy is to transform vertex positions emitted by the LiquidBlockRenderer into absolute coordinates. The renderer assumes it is being called in the context of tessellating a chunk section (16x16x16) and emits corresponding coordinates, while we batch all visible chunks in the guidebook together.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LiquidVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate, net.minecraft.core.SectionPos sectionPos)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.blaze3d.vertex.VertexConsumer
    addVertex(float x, float y, float z)
     
    void
    addVertex(float p_351049_, float p_350528_, float p_351018_, int p_350427_, float p_350508_, float p_350864_, int p_350846_, int p_350731_, float p_350784_, float p_351051_, float p_350759_)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    addVertex(com.mojang.blaze3d.vertex.PoseStack.Pose p_350506_, float p_350934_, float p_350873_, float p_350981_)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    addVertex(com.mojang.blaze3d.vertex.PoseStack.Pose p_352288_, org.joml.Vector3f p_352298_)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    addVertex(org.joml.Matrix4f p_350929_, float p_350884_, float p_350885_, float p_350942_)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    addVertex(org.joml.Vector3f p_350685_)
     
    void
    putBulkData(com.mojang.blaze3d.vertex.PoseStack.Pose pPose, net.minecraft.client.renderer.block.model.BakedQuad pQuad, float[] pBrightness, float pRed, float pGreen, float pBlue, float pAlpha, int[] pLightmap, int pPackedOverlay, boolean p_331268_)
     
    void
    putBulkData(com.mojang.blaze3d.vertex.PoseStack.Pose pPose, net.minecraft.client.renderer.block.model.BakedQuad pQuad, float pRed, float pGreen, float pBlue, float pAlpha, int pPackedLight, int pPackedOverlay)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setColor(float p_350350_, float p_350356_, float p_350623_, float p_350312_)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setColor(int p_350809_)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setColor(int i, int i1, int i2, int i3)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setLight(int p_350855_)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setNormal(float v, float v1, float v2)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setNormal(com.mojang.blaze3d.vertex.PoseStack.Pose p_350592_, float p_350534_, float p_350411_, float p_350441_)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setOverlay(int p_350697_)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setUv(float v, float v1)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setUv1(int i, int i1)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setUv2(int i, int i1)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setWhiteAlpha(int p_350979_)
     

    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
  • Constructor Details

    • LiquidVertexConsumer

      public LiquidVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate, net.minecraft.core.SectionPos sectionPos)
  • 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 i, int i1, int i2, int i3)
      Specified by:
      setColor in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setUv

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

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

      public com.mojang.blaze3d.vertex.VertexConsumer setUv2(int i, int i1)
      Specified by:
      setUv2 in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setNormal

      public com.mojang.blaze3d.vertex.VertexConsumer setNormal(float v, float v1, float v2)
      Specified by:
      setNormal in interface com.mojang.blaze3d.vertex.VertexConsumer
    • addVertex

      public void addVertex(float p_351049_, float p_350528_, float p_351018_, int p_350427_, float p_350508_, float p_350864_, int p_350846_, int p_350731_, float p_350784_, float p_351051_, float p_350759_)
      Specified by:
      addVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setColor

      public com.mojang.blaze3d.vertex.VertexConsumer setColor(float p_350350_, float p_350356_, float p_350623_, float p_350312_)
      Specified by:
      setColor in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setColor

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

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

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

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

      public void putBulkData(com.mojang.blaze3d.vertex.PoseStack.Pose pPose, net.minecraft.client.renderer.block.model.BakedQuad pQuad, float pRed, float pGreen, float pBlue, float pAlpha, int pPackedLight, int pPackedOverlay)
      Specified by:
      putBulkData in interface com.mojang.blaze3d.vertex.VertexConsumer
    • putBulkData

      public void putBulkData(com.mojang.blaze3d.vertex.PoseStack.Pose pPose, net.minecraft.client.renderer.block.model.BakedQuad pQuad, float[] pBrightness, float pRed, float pGreen, float pBlue, float pAlpha, int[] pLightmap, int pPackedOverlay, boolean p_331268_)
      Specified by:
      putBulkData in interface com.mojang.blaze3d.vertex.VertexConsumer
    • addVertex

      public com.mojang.blaze3d.vertex.VertexConsumer addVertex(org.joml.Vector3f p_350685_)
      Specified by:
      addVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • addVertex

      public com.mojang.blaze3d.vertex.VertexConsumer addVertex(com.mojang.blaze3d.vertex.PoseStack.Pose p_352288_, org.joml.Vector3f p_352298_)
      Specified by:
      addVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • addVertex

      public com.mojang.blaze3d.vertex.VertexConsumer addVertex(com.mojang.blaze3d.vertex.PoseStack.Pose p_350506_, float p_350934_, float p_350873_, float p_350981_)
      Specified by:
      addVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • addVertex

      public com.mojang.blaze3d.vertex.VertexConsumer addVertex(org.joml.Matrix4f p_350929_, float p_350884_, float p_350885_, float p_350942_)
      Specified by:
      addVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setNormal

      public com.mojang.blaze3d.vertex.VertexConsumer setNormal(com.mojang.blaze3d.vertex.PoseStack.Pose p_350592_, float p_350534_, float p_350411_, float p_350441_)
      Specified by:
      setNormal in interface com.mojang.blaze3d.vertex.VertexConsumer