Record Class VertexCallbackWithNormal
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.vertex.VertexCallbackWithNormal
- All Implemented Interfaces:
DelegatingVertexCallback, VertexCallback
public record VertexCallbackWithNormal(VertexCallback delegate, float nx, float ny, float nz)
extends Record
implements DelegatingVertexCallback
-
Constructor Summary
ConstructorsConstructorDescriptionVertexCallbackWithNormal(VertexCallback delegate, float nx, float ny, float nz) Creates an instance of aVertexCallbackWithNormalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionacceptNormal(float nx, float ny, float nz) 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.floatnx()Returns the value of thenxrecord component.floatny()Returns the value of thenyrecord component.floatnz()Returns the value of thenzrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface DelegatingVertexCallback
acceptCol, acceptLight, acceptLineWidth, 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
-
VertexCallbackWithNormal
Creates an instance of aVertexCallbackWithNormalrecord class.- Parameters:
delegate- the value for thedelegaterecord componentnx- the value for thenxrecord componentny- the value for thenyrecord componentnz- the value for thenzrecord component
-
-
Method Details
-
acceptPos
- Specified by:
acceptPosin interfaceDelegatingVertexCallback- Specified by:
acceptPosin interfaceVertexCallback
-
acceptNormal
- Specified by:
acceptNormalin interfaceDelegatingVertexCallback- Specified by:
acceptNormalin 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
-
nx
public float nx()Returns the value of thenxrecord component.- Returns:
- the value of the
nxrecord component
-
ny
public float ny()Returns the value of thenyrecord component.- Returns:
- the value of the
nyrecord component
-
nz
public float nz()Returns the value of thenzrecord component.- Returns:
- the value of the
nzrecord component
-