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