Record Class VertexCallbackWithLight
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.vertex.VertexCallbackWithLight
- All Implemented Interfaces:
DelegatingVertexCallback, VertexCallback
public record VertexCallbackWithLight(VertexCallback delegate, int u, int v)
extends Record
implements DelegatingVertexCallback
-
Constructor Summary
ConstructorsConstructorDescriptionVertexCallbackWithLight(VertexCallback delegate, int u, int v) Creates an instance of aVertexCallbackWithLightrecord class. -
Method Summary
Modifier and TypeMethodDescriptionacceptLight(int u, int v) acceptPos(float x, float y, float z) delegate()Returns the value of thedelegaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intu()Returns the value of theurecord component.intv()Returns the value of thevrecord component.Methods inherited from interface DelegatingVertexCallback
acceptCol, 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
-
VertexCallbackWithLight
Creates an instance of aVertexCallbackWithLightrecord class.- Parameters:
delegate- the value for thedelegaterecord componentu- the value for theurecord componentv- the value for thevrecord component
-
-
Method Details
-
acceptPos
- Specified by:
acceptPosin interfaceDelegatingVertexCallback- Specified by:
acceptPosin interfaceVertexCallback
-
acceptLight
- Specified by:
acceptLightin interfaceDelegatingVertexCallback- Specified by:
acceptLightin 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
-
u
public int u()Returns the value of theurecord component.- Returns:
- the value of the
urecord component
-
v
public int v()Returns the value of thevrecord component.- Returns:
- the value of the
vrecord component
-