Class SinkingVertexBuilder
java.lang.Object
de.mrjulsen.paw.fabric.compat.sodium.SinkingVertexBuilder
- All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer
@Environment(CLIENT)
public final class SinkingVertexBuilder
extends Object
implements com.mojang.blaze3d.vertex.VertexConsumer
A
VertexConsumer implementation which amortizes allocations
and pipes vertices into Sodium's meshing system.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.blaze3d.vertex.VertexConsumercolor(int r, int g, int b, int a) voiddefaultColor(int r, int g, int b, int a) voidbooleanflush(me.jellysquid.mods.sodium.client.render.chunk.compile.buffers.ChunkModelBuilder buffers, me.jellysquid.mods.sodium.client.render.chunk.terrain.material.Material material, float oX, float oY, float oZ) booleanflush(me.jellysquid.mods.sodium.client.render.chunk.compile.buffers.ChunkModelBuilder buffers, me.jellysquid.mods.sodium.client.render.chunk.terrain.material.Material material, org.joml.Vector3fc origin) booleanisEmpty()com.mojang.blaze3d.vertex.VertexConsumernormal(float x, float y, float z) com.mojang.blaze3d.vertex.VertexConsumeroverlayCoords(int u, int v) voidreset()voidcom.mojang.blaze3d.vertex.VertexConsumeruv(float u, float v) com.mojang.blaze3d.vertex.VertexConsumeruv2(int u, int v) com.mojang.blaze3d.vertex.VertexConsumervertex(double x, double y, double z) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.blaze3d.vertex.VertexConsumer
color, color, normal, overlayCoords, putBulkData, putBulkData, uv2, vertex, vertex
-
Constructor Details
-
SinkingVertexBuilder
public SinkingVertexBuilder()
-
-
Method Details
-
vertex
@Nonnull public com.mojang.blaze3d.vertex.VertexConsumer vertex(double x, double y, double z) - Specified by:
vertexin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
color
@Nonnull public com.mojang.blaze3d.vertex.VertexConsumer color(int r, int g, int b, int a) - Specified by:
colorin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
defaultColor
public void defaultColor(int r, int g, int b, int a) - Specified by:
defaultColorin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
unsetDefaultColor
public void unsetDefaultColor()- Specified by:
unsetDefaultColorin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
uv
@Nonnull public com.mojang.blaze3d.vertex.VertexConsumer uv(float u, float v) - Specified by:
uvin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
overlayCoords
@Nonnull public com.mojang.blaze3d.vertex.VertexConsumer overlayCoords(int u, int v) - Specified by:
overlayCoordsin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
uv2
@Nonnull public com.mojang.blaze3d.vertex.VertexConsumer uv2(int u, int v) - Specified by:
uv2in interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
normal
@Nonnull 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
-
reset
public void reset() -
isEmpty
public boolean isEmpty() -
flush
public boolean flush(@Nonnull me.jellysquid.mods.sodium.client.render.chunk.compile.buffers.ChunkModelBuilder buffers, me.jellysquid.mods.sodium.client.render.chunk.terrain.material.Material material, org.joml.Vector3fc origin) -
flush
public boolean flush(@Nonnull me.jellysquid.mods.sodium.client.render.chunk.compile.buffers.ChunkModelBuilder buffers, me.jellysquid.mods.sodium.client.render.chunk.terrain.material.Material material, float oX, float oY, float oZ)
-