Class RenderBuffer
java.lang.Object
xyz.gmitch215.socketmc.util.render.RenderBuffer
- All Implemented Interfaces:
Serializable
Represents a Render buffer for drawing complex shapes.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull RenderBuffer.Builderbuilder(@NotNull DrawingMode mode) Creats a new builder for aRenderBuffer.intGets the color of a vertex in the buffer in ARGB format.getMode()Gets the drawing mode for the buffer.Gets all vertices in the buffer.
-
Method Details
-
getMode
Gets the drawing mode for the buffer.- Returns:
- The drawing mode.
-
getVertices
Gets all vertices in the buffer.- Returns:
- Buffer Vertices
-
getColor
Gets the color of a vertex in the buffer in ARGB format.- Parameters:
vertex- The vertex to get the color of.- Returns:
- The color of the vertex.
-
builder
Creats a new builder for aRenderBuffer.- Parameters:
mode- The drawing mode for the buffer.- Returns:
- RenderBuffer Builder
-