Record Class PosVertexConsumer
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.render.vertexconsumer.PosVertexConsumer
- All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer, KLibVertexConsumer, DelegateVertexConsumer, VertexCallback, net.neoforged.neoforge.client.extensions.IVertexConsumerExtension
public record PosVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate)
extends Record
implements DelegateVertexConsumer
-
Constructor Summary
ConstructorsConstructorDescriptionPosVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate) Creates an instance of aPosVertexConsumerrecord 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.final StringtoString()Returns a string representation of this record class.Methods inherited from interface DelegateVertexConsumer
addVertex, setColor, setColor, setLineWidth, 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
-
PosVertexConsumer
public PosVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate) Creates an instance of aPosVertexConsumerrecord class.- Parameters:
delegate- the value for thedelegaterecord component
-
-
Method Details
-
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
-