Record Class VertexCallbackWithColor
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.vertex.VertexCallbackWithColor
- All Implemented Interfaces:
DelegatingVertexCallback, VertexCallback
public record VertexCallbackWithColor(VertexCallback delegate, float r, float g, float b, float a)
extends Record
implements DelegatingVertexCallback
-
Constructor Summary
ConstructorsConstructorDescriptionVertexCallbackWithColor(VertexCallback delegate, float r, float g, float b, float a) Creates an instance of aVertexCallbackWithColorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloata()Returns the value of thearecord component.acceptCol(float r, float g, float b, float a) acceptPos(float x, float y, float z) floatb()Returns the value of thebrecord component.delegate()Returns the value of thedelegaterecord component.final booleanIndicates whether some other object is "equal to" this one.floatg()Returns the value of thegrecord component.final inthashCode()Returns a hash code value for this object.floatr()Returns the value of therrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface DelegatingVertexCallback
acceptLight, acceptLineWidth, acceptNormal, acceptOverlay, acceptTexMethods inherited from interface VertexCallback
line, line, line, line, onlyPos, onlyPosCol, onlyPosColNormal, onlyPosColTex, onlyPosColTexNormal, onlyPosTex, quad, withColor, withLight, withLineWidth, withNormal, withOverlay, withTex, withTransformedNormals, withTransformedPositions, withTransformedPositionsAndNormals
-
Constructor Details
-
VertexCallbackWithColor
Creates an instance of aVertexCallbackWithColorrecord class.- Parameters:
delegate- the value for thedelegaterecord componentr- the value for therrecord componentg- the value for thegrecord componentb- the value for thebrecord componenta- the value for thearecord component
-
-
Method Details
-
acceptPos
- Specified by:
acceptPosin interfaceDelegatingVertexCallback- Specified by:
acceptPosin interfaceVertexCallback
-
acceptCol
- Specified by:
acceptColin interfaceDelegatingVertexCallback- Specified by:
acceptColin interfaceVertexCallback
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
delegate
Returns the value of thedelegaterecord component.- Specified by:
delegatein interfaceDelegatingVertexCallback- Returns:
- the value of the
delegaterecord component
-
r
public float r()Returns the value of therrecord component.- Returns:
- the value of the
rrecord component
-
g
public float g()Returns the value of thegrecord component.- Returns:
- the value of the
grecord component
-
b
public float b()Returns the value of thebrecord component.- Returns:
- the value of the
brecord component
-
a
public float a()Returns the value of thearecord component.- Returns:
- the value of the
arecord component
-