Record Class LineWidthConsumer
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.render.vertexconsumer.LineWidthConsumer
- All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer, KLibVertexConsumer, DelegateVertexConsumer, VertexCallback, net.neoforged.neoforge.client.extensions.IVertexConsumerExtension
public record LineWidthConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate)
extends Record
implements DelegateVertexConsumer
-
Constructor Summary
ConstructorsConstructorDescriptionLineWidthConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate) Creates an instance of aLineWidthConsumerrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.blaze3d.vertex.VertexConsumerdelegate()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.com.mojang.blaze3d.vertex.VertexConsumersetLineWidth(float width) final StringtoString()Returns a string representation of this record class.Methods inherited from interface DelegateVertexConsumer
addVertex, setColor, setColor, setNormal, setUv, setUv1, setUv2Methods inherited from interface net.neoforged.neoforge.client.extensions.IVertexConsumerExtension
applyBakedNormals, misc, putMutableQuadMethods inherited from interface KLibVertexConsumer
acceptCol, acceptLight, acceptLineWidth, acceptNormal, acceptOverlay, acceptPos, acceptTexMethods inherited from interface VertexCallback
line, line, line, line, onlyPos, onlyPosCol, onlyPosColNormal, onlyPosColTex, onlyPosColTexNormal, onlyPosTex, quad, withColor, withLight, withLineWidth, withNormal, withOverlay, withTex, withTransformedNormals, withTransformedPositions, withTransformedPositionsAndNormalsMethods inherited from interface com.mojang.blaze3d.vertex.VertexConsumer
addVertex, addVertex, addVertex, addVertex, addVertex, addVertexWith2DPose, putBakedQuad, putBlockBakedQuad, setColor, setLight, setNormal, setNormal, setOverlay
-
Constructor Details
-
LineWidthConsumer
public LineWidthConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate) Creates an instance of aLineWidthConsumerrecord class.- Parameters:
delegate- the value for thedelegaterecord component
-
-
Method Details
-
setLineWidth
public com.mojang.blaze3d.vertex.VertexConsumer setLineWidth(float width) - Specified by:
setLineWidthin interfaceDelegateVertexConsumer- Specified by:
setLineWidthin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
delegate
public com.mojang.blaze3d.vertex.VertexConsumer delegate()Returns the value of thedelegaterecord component.- Specified by:
delegatein interfaceDelegateVertexConsumer- Returns:
- the value of the
delegaterecord component
-