Package net.minecraft.client.render
Record Class BufferBuilder.DrawArrayParameters
java.lang.Object
java.lang.Record
net.minecraft.client.render.BufferBuilder.DrawArrayParameters
- Record Components:
format-vertexCount-indexCount-mode-indexType-indexOnly-sequentialIndex-
- Enclosing class:
BufferBuilder
@Environment(CLIENT)
public static record BufferBuilder.DrawArrayParameters(VertexFormat format, int vertexCount, int indexCount, VertexFormat.DrawMode mode, VertexFormat.IndexType indexType, boolean indexOnly, boolean sequentialIndex)
extends Record
- Mappings:
Namespace Name official dzo$aintermediary net/minecraft/class_287$class_4574named net/minecraft/client/render/BufferBuilder$DrawArrayParametersofficial aintermediary comp_749named formatofficial bintermediary comp_750named vertexCountofficial cintermediary comp_751named indexCountofficial dintermediary comp_752named modeofficial eintermediary comp_753named indexTypeofficial fintermediary comp_754named indexOnlyofficial gintermediary comp_755named sequentialIndex
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VertexFormatThe field for theformatrecord component.private final intThe field for theindexCountrecord component.private final booleanThe field for theindexOnlyrecord component.private final VertexFormat.IndexTypeThe field for theindexTyperecord component.private final VertexFormat.DrawModeThe field for themoderecord component.private final booleanThe field for thesequentialIndexrecord component.private final intThe field for thevertexCountrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDrawArrayParameters(VertexFormat vertexFormat, int int2, int int3, VertexFormat.DrawMode drawMode, VertexFormat.IndexType indexType, boolean bool, boolean bool2) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.intprivate intintintintintintfinal inthashCode()Returns a hash code value for this object.intReturns the value of theindexCountrecord component.booleanReturns the value of theindexOnlyrecord component.Returns the value of theindexTyperecord component.mode()Returns the value of themoderecord component.booleanReturns the value of thesequentialIndexrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thevertexCountrecord component.
-
Field Details
-
format
The field for theformatrecord component. -
vertexCount
private final int vertexCountThe field for thevertexCountrecord component. -
indexCount
private final int indexCountThe field for theindexCountrecord component. -
mode
The field for themoderecord component. -
indexType
The field for theindexTyperecord component. -
indexOnly
private final boolean indexOnlyThe field for theindexOnlyrecord component. -
sequentialIndex
private final boolean sequentialIndexThe field for thesequentialIndexrecord component.
-
-
Constructor Details
-
DrawArrayParameters
public DrawArrayParameters(VertexFormat vertexFormat, int int2, int int3, VertexFormat.DrawMode drawMode, VertexFormat.IndexType indexType, boolean bool, boolean bool2)
-
-
Method Details
-
getIndexBufferStart
public int getIndexBufferStart()- Mappings:
Namespace Name Mixin selector official aLdzo$a;a()Iintermediary method_31957Lnet/minecraft/class_287$class_4574;method_31957()Inamed getIndexBufferStartLnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;getIndexBufferStart()I
-
getVertexBufferPosition
public int getVertexBufferPosition()- Mappings:
Namespace Name Mixin selector official bLdzo$a;b()Iintermediary method_43429Lnet/minecraft/class_287$class_4574;method_43429()Inamed getVertexBufferPositionLnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;getVertexBufferPosition()I
-
getVertexBufferLimit
public int getVertexBufferLimit()- Mappings:
Namespace Name Mixin selector official cLdzo$a;c()Iintermediary method_43430Lnet/minecraft/class_287$class_4574;method_43430()Inamed getVertexBufferLimitLnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;getVertexBufferLimit()I
-
getIndexBufferPosition
public int getIndexBufferPosition()- Mappings:
Namespace Name Mixin selector official dLdzo$a;d()Iintermediary method_43431Lnet/minecraft/class_287$class_4574;method_43431()Inamed getIndexBufferPositionLnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;getIndexBufferPosition()I
-
getIndexBufferLimit
public int getIndexBufferLimit()- Mappings:
Namespace Name Mixin selector official eLdzo$a;e()Iintermediary method_43432Lnet/minecraft/class_287$class_4574;method_43432()Inamed getIndexBufferLimitLnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;getIndexBufferLimit()I
-
getIndexBufferLength
private int getIndexBufferLength()- Mappings:
Namespace Name Mixin selector official nLdzo$a;n()Iintermediary method_31961Lnet/minecraft/class_287$class_4574;method_31961()Inamed getIndexBufferLengthLnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;getIndexBufferLength()I
-
getIndexBufferEnd
public int getIndexBufferEnd()- Mappings:
Namespace Name Mixin selector official fLdzo$a;f()Iintermediary method_31958Lnet/minecraft/class_287$class_4574;method_31958()Inamed getIndexBufferEndLnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;getIndexBufferEnd()I
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
vertexCount
public int vertexCount()Returns the value of thevertexCountrecord component.- Returns:
- the value of the
vertexCountrecord component
-
indexCount
public int indexCount()Returns the value of theindexCountrecord component.- Returns:
- the value of the
indexCountrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
indexType
Returns the value of theindexTyperecord component.- Returns:
- the value of the
indexTyperecord component
-
indexOnly
public boolean indexOnly()Returns the value of theindexOnlyrecord component.- Returns:
- the value of the
indexOnlyrecord component
-
sequentialIndex
public boolean sequentialIndex()Returns the value of thesequentialIndexrecord component.- Returns:
- the value of the
sequentialIndexrecord component
-