Package dev.latvian.mods.klib.vertex
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.latvian.mods.klib.vertex.DelegatingVertexCallback
acceptLight, acceptNormal, acceptOverlay, acceptTexMethods inherited from interface dev.latvian.mods.klib.vertex.VertexCallback
line, line, line, line, onlyPos, onlyPosCol, onlyPosColNormal, onlyPosColTex, onlyPosColTexNormal, onlyPosTex, quad, withColor, withLight, 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
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
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
-