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,IForgeVertexConsumer
- Enclosing class:
VertexMultiConsumer
static record VertexMultiConsumer.Multiple(VertexConsumer[] delegates)
extends Record
implements VertexConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VertexConsumer[]The field for thedelegatesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMultiple(VertexConsumer[] delegates) Creates an instance of aMultiplerecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddVertex(float p_167147_, float p_167148_, float p_167149_) voidaddVertex(float p_342518_, float p_344848_, float p_345186_, int p_343970_, float p_345395_, float p_342765_, int p_345332_, int p_342050_, float p_343977_, float p_342883_, float p_344334_) Returns the value of thedelegatesrecord component.final booleanIndicates whether some other object is "equal to" this one.private voidforEach(Consumer<VertexConsumer> p_167145_) final inthashCode()Returns a hash code value for this object.setColor(int p_167130_, int p_167131_, int p_167132_, int p_167133_) setNormal(float p_343750_, float p_344366_, float p_342844_) setUv(float p_167084_, float p_167085_) setUv1(int p_343411_, int p_342288_) setUv2(int p_343645_, int p_344197_) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.client.extensions.IForgeVertexConsumer
applyBakedLighting, applyBakedNormals, misc, putBulkDataMethods 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 thedelegatesrecord component.
-
-
Constructor Details
-
Multiple
Multiple(VertexConsumer[] delegates) 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
-
setUv
- Specified by:
setUvin interfaceVertexConsumer
-
setUv1
- Specified by:
setUv1in interfaceVertexConsumer
-
setUv2
- Specified by:
setUv2in interfaceVertexConsumer
-
setNormal
- Specified by:
setNormalin interfaceVertexConsumer
-
addVertex
public void addVertex(float p_342518_, float p_344848_, float p_345186_, int p_343970_, float p_345395_, float p_342765_, int p_345332_, int p_342050_, float p_343977_, float p_342883_, float p_344334_) - Specified by:
addVertexin 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 thedelegatesrecord component.- Returns:
- the value of the
delegatesrecord component
-