Class RenderBuffer.Builder
java.lang.Object
xyz.gmitch215.socketmc.util.render.RenderBuffer.Builder
- Enclosing class:
 RenderBuffer
Represents a builder for a 
RenderBuffer.- 
Method Summary
Modifier and TypeMethodDescriptionAdds a vertex to the buffer with a specified color and alpha value.Adds a vertex to the buffer with a specified color.Adds a vertex to the buffer with a specified color and alpha value.build()Builds the buffer. 
- 
Method Details
- 
addVertex
@NotNull public @NotNull RenderBuffer.Builder addVertex(@NotNull @NotNull Vertex vertex, @NotNull @NotNull Color color) throws IllegalArgumentException Adds a vertex to the buffer with a specified color.- Parameters:
 vertex- The vertex to add.color- The color of the vertex.- Returns:
 - this class, for chaining
 - Throws:
 IllegalArgumentException- If the vertex or color is null
 - 
addVertex
@NotNull public @NotNull RenderBuffer.Builder addVertex(@NotNull @NotNull Vertex vertex, @NotNull @NotNull Color color, int alpha) throws IllegalArgumentException Adds a vertex to the buffer with a specified color and alpha value.- Parameters:
 vertex- The vertex to add.color- The color of the vertex.alpha- The alpha value of the vertex (0-255).- Returns:
 - this class, for chaining
 - Throws:
 IllegalArgumentException- If the vertex or color is null, or if the alpha value is not between 0 and 255
 - 
addVertex
@NotNull public @NotNull RenderBuffer.Builder addVertex(@NotNull @NotNull Vertex vertex, int argb) throws IllegalArgumentException Adds a vertex to the buffer with a specified color and alpha value.- Parameters:
 vertex- The vertex to add.argb- The color of the vertex in ARGB format.- Returns:
 - this class, for chaining
 - Throws:
 IllegalArgumentException- If the vertex or color is null, or if the alpha value is not between 0 and 255
 - 
build
Builds the buffer.- Returns:
 - Built 
RenderBuffer 
 
 -