Record Class VertexCallbackWithLineWidth
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.vertex.VertexCallbackWithLineWidth
- All Implemented Interfaces:
DelegatingVertexCallback, VertexCallback
public record VertexCallbackWithLineWidth(VertexCallback delegate, float lineWidth)
extends Record
implements DelegatingVertexCallback
-
Constructor Summary
ConstructorsConstructorDescriptionVertexCallbackWithLineWidth(VertexCallback delegate, float lineWidth) Creates an instance of aVertexCallbackWithLineWidthrecord class. -
Method Summary
Modifier and TypeMethodDescriptionacceptLineWidth(float lineWidth) 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.floatReturns the value of thelineWidthrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface DelegatingVertexCallback
acceptCol, acceptLight, 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
-
VertexCallbackWithLineWidth
Creates an instance of aVertexCallbackWithLineWidthrecord class.- Parameters:
delegate- the value for thedelegaterecord componentlineWidth- the value for thelineWidthrecord component
-
-
Method Details
-
acceptPos
- Specified by:
acceptPosin interfaceDelegatingVertexCallback- Specified by:
acceptPosin interfaceVertexCallback
-
acceptLineWidth
- Specified by:
acceptLineWidthin interfaceDelegatingVertexCallback- Specified by:
acceptLineWidthin 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
-
lineWidth
public float lineWidth()Returns the value of thelineWidthrecord component.- Returns:
- the value of the
lineWidthrecord component
-