Package guideme.scene
Class LiquidVertexConsumer
java.lang.Object
guideme.scene.LiquidVertexConsumer
- All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer,net.minecraftforge.client.extensions.IForgeVertexConsumer
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
ConstructorsConstructorDescriptionLiquidVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate, net.minecraft.core.SectionPos sectionPos) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.blaze3d.vertex.VertexConsumercolor(float red, float green, float blue, float alpha) com.mojang.blaze3d.vertex.VertexConsumercolor(int i) com.mojang.blaze3d.vertex.VertexConsumercolor(int red, int green, int blue, int alpha) voiddefaultColor(int red, int green, int blue, int alpha) voidcom.mojang.blaze3d.vertex.VertexConsumernormal(float x, float y, float z) com.mojang.blaze3d.vertex.VertexConsumernormal(org.joml.Matrix3f matrix3f, float f, float g, float h) com.mojang.blaze3d.vertex.VertexConsumeroverlayCoords(int overlayUV) com.mojang.blaze3d.vertex.VertexConsumeroverlayCoords(int u, int v) voidputBulkData(com.mojang.blaze3d.vertex.PoseStack.Pose poseEntry, net.minecraft.client.renderer.block.model.BakedQuad quad, float[] colorMuls, float red, float green, float blue, int[] combinedLights, int combinedOverlay, boolean mulColor) voidputBulkData(com.mojang.blaze3d.vertex.PoseStack.Pose poseEntry, net.minecraft.client.renderer.block.model.BakedQuad quad, float red, float green, float blue, int combinedLight, int combinedOverlay) voidcom.mojang.blaze3d.vertex.VertexConsumeruv(float u, float v) com.mojang.blaze3d.vertex.VertexConsumeruv2(int lightmapUV) com.mojang.blaze3d.vertex.VertexConsumeruv2(int u, int v) com.mojang.blaze3d.vertex.VertexConsumervertex(double x, double y, double z) voidvertex(float x, float y, float z, float red, float green, float blue, float alpha, float texU, float texV, int overlayUV, int lightmapUV, float normalX, float normalY, float normalZ) com.mojang.blaze3d.vertex.VertexConsumervertex(org.joml.Matrix4f matrix4f, float f, float g, float h) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.client.extensions.IForgeVertexConsumer
applyBakedLighting, applyBakedNormals, misc, putBulkDataMethods inherited from interface com.mojang.blaze3d.vertex.VertexConsumer
putBulkData
-
Constructor Details
-
LiquidVertexConsumer
public LiquidVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate, net.minecraft.core.SectionPos sectionPos)
-
-
Method Details
-
vertex
public com.mojang.blaze3d.vertex.VertexConsumer vertex(double x, double y, double z) - Specified by:
vertexin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
color
public com.mojang.blaze3d.vertex.VertexConsumer color(int red, int green, int blue, int alpha) - Specified by:
colorin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
uv
public com.mojang.blaze3d.vertex.VertexConsumer uv(float u, float v) - Specified by:
uvin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
overlayCoords
public com.mojang.blaze3d.vertex.VertexConsumer overlayCoords(int u, int v) - Specified by:
overlayCoordsin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
uv2
public com.mojang.blaze3d.vertex.VertexConsumer uv2(int u, int v) - Specified by:
uv2in interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
normal
public com.mojang.blaze3d.vertex.VertexConsumer normal(float x, float y, float z) - Specified by:
normalin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
endVertex
public void endVertex()- Specified by:
endVertexin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
vertex
public void vertex(float x, float y, float z, float red, float green, float blue, float alpha, float texU, float texV, int overlayUV, int lightmapUV, float normalX, float normalY, float normalZ) - Specified by:
vertexin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
defaultColor
public void defaultColor(int red, int green, int blue, int alpha) - Specified by:
defaultColorin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
unsetDefaultColor
public void unsetDefaultColor()- Specified by:
unsetDefaultColorin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
color
public com.mojang.blaze3d.vertex.VertexConsumer color(float red, float green, float blue, float alpha) - Specified by:
colorin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
color
public com.mojang.blaze3d.vertex.VertexConsumer color(int i) - Specified by:
colorin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
uv2
public com.mojang.blaze3d.vertex.VertexConsumer uv2(int lightmapUV) - Specified by:
uv2in interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
overlayCoords
public com.mojang.blaze3d.vertex.VertexConsumer overlayCoords(int overlayUV) - Specified by:
overlayCoordsin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
putBulkData
public void putBulkData(com.mojang.blaze3d.vertex.PoseStack.Pose poseEntry, net.minecraft.client.renderer.block.model.BakedQuad quad, float red, float green, float blue, int combinedLight, int combinedOverlay) - Specified by:
putBulkDatain interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
putBulkData
public void putBulkData(com.mojang.blaze3d.vertex.PoseStack.Pose poseEntry, net.minecraft.client.renderer.block.model.BakedQuad quad, float[] colorMuls, float red, float green, float blue, int[] combinedLights, int combinedOverlay, boolean mulColor) - Specified by:
putBulkDatain interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
vertex
public com.mojang.blaze3d.vertex.VertexConsumer vertex(org.joml.Matrix4f matrix4f, float f, float g, float h) - Specified by:
vertexin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
normal
public com.mojang.blaze3d.vertex.VertexConsumer normal(org.joml.Matrix3f matrix3f, float f, float g, float h) - Specified by:
normalin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-