Record Class PosColVertexConsumer
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.render.vertexconsumer.PosColVertexConsumer
- All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer, KLibVertexConsumer, DelegateVertexConsumer, VertexCallback, net.neoforged.neoforge.client.extensions.IVertexConsumerExtension
public record PosColVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate)
extends Record
implements DelegateVertexConsumer
-
Constructor Summary
ConstructorsConstructorDescriptionPosColVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate) Creates an instance of aPosColVertexConsumerrecord 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.VertexConsumersetColor(int color) com.mojang.blaze3d.vertex.VertexConsumersetColor(int red, int green, int blue, int alpha) final StringtoString()Returns a string representation of this record class.Methods inherited from interface DelegateVertexConsumer
addVertex, 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
-
PosColVertexConsumer
public PosColVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate) Creates an instance of aPosColVertexConsumerrecord class.- Parameters:
delegate- the value for thedelegaterecord component
-
-
Method Details
-
setColor
public com.mojang.blaze3d.vertex.VertexConsumer setColor(int red, int green, int blue, int alpha) - Specified by:
setColorin interfaceDelegateVertexConsumer- Specified by:
setColorin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setColor
public com.mojang.blaze3d.vertex.VertexConsumer setColor(int color) - Specified by:
setColorin interfaceDelegateVertexConsumer- Specified by:
setColorin 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
-