Record Class ColoringVertexConsumer
java.lang.Object
java.lang.Record
net.createmod.catnip.impl.client.render.ColoringVertexConsumer
- All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer
public record ColoringVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate, float red, float green, float blue, float alpha)
extends Record
implements com.mojang.blaze3d.vertex.VertexConsumer
-
Constructor Summary
ConstructorsConstructorDescriptionColoringVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate, float red, float green, float blue, float alpha) Creates an instance of aColoringVertexConsumerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()Returns the value of thealpharecord component.floatblue()Returns the value of thebluerecord component.com.mojang.blaze3d.vertex.VertexConsumercolor(int r, int g, int b, int a) voiddefaultColor(int r, int g, int b, int a) com.mojang.blaze3d.vertex.VertexConsumerdelegate()Returns the value of thedelegaterecord component.voidfinal booleanIndicates whether some other object is "equal to" this one.floatgreen()Returns the value of thegreenrecord component.final inthashCode()Returns a hash code value for this object.com.mojang.blaze3d.vertex.VertexConsumernormal(float x, float y, float z) com.mojang.blaze3d.vertex.VertexConsumeroverlayCoords(int u, int v) floatred()Returns the value of theredrecord component.final StringtoString()Returns a string representation of this record class.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, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.mojang.blaze3d.vertex.VertexConsumer
color, color, normal, overlayCoords, putBulkData, putBulkData, uv2, vertex, vertex
-
Constructor Details
-
ColoringVertexConsumer
public ColoringVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate, float red, float green, float blue, float alpha) Creates an instance of aColoringVertexConsumerrecord class.- Parameters:
delegate- the value for thedelegaterecord componentred- the value for theredrecord componentgreen- the value for thegreenrecord componentblue- the value for thebluerecord componentalpha- the value for thealpharecord component
-
-
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 r, int g, int b, int a) - 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
-
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
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
delegate
public com.mojang.blaze3d.vertex.VertexConsumer delegate()Returns the value of thedelegaterecord component.- Returns:
- the value of the
delegaterecord component
-
red
public float red()Returns the value of theredrecord component.- Returns:
- the value of the
redrecord component
-
green
public float green()Returns the value of thegreenrecord component.- Returns:
- the value of the
greenrecord component
-
blue
public float blue()Returns the value of thebluerecord component.- Returns:
- the value of the
bluerecord component
-
alpha
public float alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-