Record Class VertexMultiConsumer.Multiple
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vertex.VertexMultiConsumer.Multiple
- All Implemented Interfaces:
VertexConsumer, IVertexConsumerExtension
- Enclosing class:
VertexMultiConsumer
private static record VertexMultiConsumer.Multiple(VertexConsumer[] delegates)
extends Record
implements VertexConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VertexConsumer[]The field for thedelegatesrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMultiple(VertexConsumer[] delegates) Creates an instance of aMultiplerecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddVertex(float x, float y, float z) voidaddVertex(float x, float y, float z, int color, float u, float v, int overlayCoords, int lightCoords, float nx, float ny, float nz) Returns the value of thedelegatesrecord component.final booleanIndicates whether some other object is "equal to" this one.private voidforEach(Consumer<VertexConsumer> out) final inthashCode()Returns a hash code value for this object.setColor(int color) setColor(int r, int g, int b, int a) setLineWidth(float width) setNormal(float x, float y, float z) setUv(float u, float v) setUv1(int u, int v) setUv2(int u, int v) final StringtoString()Returns a string representation of this record class.Methods inherited from interface IVertexConsumerExtension
applyBakedNormals, misc, putBulkData, putBulkDataMethods inherited from interface VertexConsumer
addVertex, addVertex, addVertex, addVertex, addVertexWith2DPose, putBulkData, setColor, setLight, setNormal, setNormal, setOverlay
-
Field Details
-
delegates
The field for thedelegatesrecord component.
-
-
Constructor Details
-
Multiple
Creates an instance of aMultiplerecord class.- Parameters:
delegates- the value for thedelegatesrecord component
-
-
Method Details
-
forEach
-
addVertex
- Specified by:
addVertexin interfaceVertexConsumer
-
setColor
- Specified by:
setColorin interfaceVertexConsumer
-
setColor
- Specified by:
setColorin interfaceVertexConsumer
-
setUv
- Specified by:
setUvin interfaceVertexConsumer
-
setUv1
- Specified by:
setUv1in interfaceVertexConsumer
-
setUv2
- Specified by:
setUv2in interfaceVertexConsumer
-
setNormal
- Specified by:
setNormalin interfaceVertexConsumer
-
setLineWidth
- Specified by:
setLineWidthin interfaceVertexConsumer
-
addVertex
public void addVertex(float x, float y, float z, int color, float u, float v, int overlayCoords, int lightCoords, float nx, float ny, float nz) - Specified by:
addVertexin interfaceVertexConsumer
-
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). -
delegates
Returns the value of thedelegatesrecord component.- Returns:
- the value of the
delegatesrecord component
-