Package net.minecraft.client.render
Record Class BufferBuilder.DrawArrayParameters
java.lang.Object
java.lang.Record
net.minecraft.client.render.BufferBuilder.DrawArrayParameters
- Record Components:
vertexFormat-count-vertexCount-mode-elementFormat-hasNoVertexBuffer-hasNoIndexBuffer-
- Enclosing class:
BufferBuilder
@Environment(CLIENT)
public static record BufferBuilder.DrawArrayParameters(VertexFormat vertexFormat, int count, int vertexCount, VertexFormat.DrawMode mode, VertexFormat.IntType elementFormat, boolean hasNoVertexBuffer, boolean hasNoIndexBuffer)
extends Record
- Mappings:
Namespace Name official dxu$aintermediary net/minecraft/class_287$class_4574named net/minecraft/client/render/BufferBuilder$DrawArrayParametersofficial aintermediary comp_749named vertexFormatofficial bintermediary comp_750named countofficial cintermediary comp_751named vertexCountofficial dintermediary comp_752named modeofficial eintermediary comp_753named elementFormatofficial fintermediary comp_754named hasNoVertexBufferofficial gintermediary comp_755named hasNoIndexBuffer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecountrecord component.private final VertexFormat.IntTypeThe field for theelementFormatrecord component.private final booleanThe field for thehasNoIndexBufferrecord component.private final booleanThe field for thehasNoVertexBufferrecord component.private final VertexFormat.DrawModeThe field for themoderecord component.private final intThe field for thevertexCountrecord component.private final VertexFormatThe field for thevertexFormatrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDrawArrayParameters(VertexFormat vertexFormat, int count, int vertexCount, VertexFormat.DrawMode mode, VertexFormat.IntType elementFormat, boolean hasNoVertexBuffer, boolean hasNoIndexBuffer) Creates an instance of aDrawArrayParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.Returns the value of theelementFormatrecord component.final booleanIndicates whether some other object is "equal to" this one.intprivate intintintintintintfinal inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasNoIndexBufferrecord component.booleanReturns the value of thehasNoVertexBufferrecord component.mode()Returns the value of themoderecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thevertexCountrecord component.Returns the value of thevertexFormatrecord component.
-
Field Details
-
vertexFormat
The field for thevertexFormatrecord component. -
count
private final int countThe field for thecountrecord component. -
vertexCount
private final int vertexCountThe field for thevertexCountrecord component. -
mode
The field for themoderecord component. -
elementFormat
The field for theelementFormatrecord component. -
hasNoVertexBuffer
private final boolean hasNoVertexBufferThe field for thehasNoVertexBufferrecord component. -
hasNoIndexBuffer
private final boolean hasNoIndexBufferThe field for thehasNoIndexBufferrecord component.
-
-
Constructor Details
-
DrawArrayParameters
public DrawArrayParameters(VertexFormat vertexFormat, int count, int vertexCount, VertexFormat.DrawMode mode, VertexFormat.IntType elementFormat, boolean hasNoVertexBuffer, boolean hasNoIndexBuffer) Creates an instance of aDrawArrayParametersrecord class.- Parameters:
vertexFormat- the value for thevertexFormatrecord componentcount- the value for thecountrecord componentvertexCount- the value for thevertexCountrecord componentmode- the value for themoderecord componentelementFormat- the value for theelementFormatrecord componenthasNoVertexBuffer- the value for thehasNoVertexBufferrecord componenthasNoIndexBuffer- the value for thehasNoIndexBufferrecord component
-
-
Method Details
-
getIndexBufferStart
public int getIndexBufferStart()- Mappings:
Namespace Name Mixin selector official aLdxu$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 bLdxu$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 cLdxu$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 dLdxu$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 eLdxu$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 nLdxu$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 fLdxu$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 '=='. -
vertexFormat
Returns the value of thevertexFormatrecord component.- Returns:
- the value of the
vertexFormatrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
vertexCount
public int vertexCount()Returns the value of thevertexCountrecord component.- Returns:
- the value of the
vertexCountrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
elementFormat
Returns the value of theelementFormatrecord component.- Returns:
- the value of the
elementFormatrecord component
-
hasNoVertexBuffer
public boolean hasNoVertexBuffer()Returns the value of thehasNoVertexBufferrecord component.- Returns:
- the value of the
hasNoVertexBufferrecord component
-
hasNoIndexBuffer
public boolean hasNoIndexBuffer()Returns the value of thehasNoIndexBufferrecord component.- Returns:
- the value of the
hasNoIndexBufferrecord component
-