Package com.mojang.blaze3d.vertex
Record Class VertexMultiConsumer.Multiple
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vertex.VertexMultiConsumer.Multiple
- All Implemented Interfaces:
VertexConsumer
,IVertexConsumerExtension
- Enclosing class:
VertexMultiConsumer
static record VertexMultiConsumer.Multiple(VertexConsumer[] delegates)
extends Record
implements VertexConsumer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final VertexConsumer[]
The field for thedelegates
record component. -
Constructor Summary
ConstructorDescriptionMultiple
(VertexConsumer[] delegates) Creates an instance of aMultiple
record class. -
Method Summary
Modifier and TypeMethodDescriptionaddVertex
(float p_350626_, float p_351046_, float p_351003_) void
addVertex
(float p_350950_, float p_350670_, float p_350366_, int p_350619_, float p_350871_, float p_350850_, int p_350499_, int p_350318_, float p_350404_, float p_350988_, float p_350991_) Returns the value of thedelegates
record component.final boolean
Indicates whether some other object is "equal to" this one.private void
forEach
(Consumer<VertexConsumer> p_167145_) final int
hashCode()
Returns a hash code value for this object.setColor
(int p_167130_, int p_167131_, int p_167132_, int p_167133_) setNormal
(float p_167147_, float p_167148_, float p_167149_) setUv
(float p_167084_, float p_167085_) setUv1
(int p_350622_, int p_350367_) setUv2
(int p_350498_, int p_350436_) final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.client.extensions.IVertexConsumerExtension
applyBakedLighting, applyBakedNormals, misc, putBulkData
Methods inherited from interface com.mojang.blaze3d.vertex.VertexConsumer
addVertex, addVertex, addVertex, addVertex, putBulkData, putBulkData, setColor, setColor, setLight, setNormal, setOverlay, setWhiteAlpha
-
Field Details
-
delegates
The field for thedelegates
record component.
-
-
Constructor Details
-
Multiple
Multiple(VertexConsumer[] delegates) Creates an instance of aMultiple
record class.- Parameters:
delegates
- the value for thedelegates
record component
-
-
Method Details
-
forEach
-
addVertex
- Specified by:
addVertex
in interfaceVertexConsumer
-
setColor
- Specified by:
setColor
in interfaceVertexConsumer
-
setUv
- Specified by:
setUv
in interfaceVertexConsumer
-
setUv1
- Specified by:
setUv1
in interfaceVertexConsumer
-
setUv2
- Specified by:
setUv2
in interfaceVertexConsumer
-
setNormal
- Specified by:
setNormal
in interfaceVertexConsumer
-
addVertex
public void addVertex(float p_350950_, float p_350670_, float p_350366_, int p_350619_, float p_350871_, float p_350850_, int p_350499_, int p_350318_, float p_350404_, float p_350988_, float p_350991_) - Specified by:
addVertex
in interfaceVertexConsumer
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 thedelegates
record component.- Returns:
- the value of the
delegates
record component
-