Record Class PosColTexVertexConsumer
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.render.vertexconsumer.PosColTexVertexConsumer
- All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer, KLibVertexConsumer, DelegateVertexConsumer, VertexCallback, net.neoforged.neoforge.client.extensions.IVertexConsumerExtension
public record PosColTexVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate)
extends Record
implements DelegateVertexConsumer
-
Constructor Summary
ConstructorsConstructorDescriptionPosColTexVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate) Creates an instance of aPosColTexVertexConsumerrecord 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) com.mojang.blaze3d.vertex.VertexConsumersetUv(float u, float v) final StringtoString()Returns a string representation of this record class.Methods inherited from interface DelegateVertexConsumer
addVertex, setLineWidth, setNormal, 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
-
PosColTexVertexConsumer
public PosColTexVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate) Creates an instance of aPosColTexVertexConsumerrecord 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
-
setUv
public com.mojang.blaze3d.vertex.VertexConsumer setUv(float u, float v) - Specified by:
setUvin interfaceDelegateVertexConsumer- Specified by:
setUvin 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
-