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$a
intermediary net/minecraft/class_287$class_4574
named net/minecraft/client/render/BufferBuilder$DrawArrayParameters
official a
intermediary comp_749
named vertexFormat
official b
intermediary comp_750
named count
official c
intermediary comp_751
named vertexCount
official d
intermediary comp_752
named mode
official e
intermediary comp_753
named elementFormat
official f
intermediary comp_754
named hasNoVertexBuffer
official g
intermediary comp_755
named hasNoIndexBuffer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The field for thecount
record component.private final VertexFormat.IntType
The field for theelementFormat
record component.private final boolean
The field for thehasNoIndexBuffer
record component.private final boolean
The field for thehasNoVertexBuffer
record component.private final VertexFormat.DrawMode
The field for themode
record component.private final int
The field for thevertexCount
record component.private final VertexFormat
The field for thevertexFormat
record component. -
Constructor Summary
ConstructorsConstructorDescriptionDrawArrayParameters
(VertexFormat vertexFormat, int count, int vertexCount, VertexFormat.DrawMode mode, VertexFormat.IntType elementFormat, boolean hasNoVertexBuffer, boolean hasNoIndexBuffer) Creates an instance of aDrawArrayParameters
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
count()
Returns the value of thecount
record component.Returns the value of theelementFormat
record component.final boolean
Indicates whether some other object is "equal to" this one.int
private int
int
int
int
int
int
final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of thehasNoIndexBuffer
record component.boolean
Returns the value of thehasNoVertexBuffer
record component.mode()
Returns the value of themode
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of thevertexCount
record component.Returns the value of thevertexFormat
record component.
-
Field Details
-
vertexFormat
The field for thevertexFormat
record component. -
count
private final int countThe field for thecount
record component. -
vertexCount
private final int vertexCountThe field for thevertexCount
record component. -
mode
The field for themode
record component. -
elementFormat
The field for theelementFormat
record component. -
hasNoVertexBuffer
private final boolean hasNoVertexBufferThe field for thehasNoVertexBuffer
record component. -
hasNoIndexBuffer
private final boolean hasNoIndexBufferThe field for thehasNoIndexBuffer
record 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 aDrawArrayParameters
record class.- Parameters:
vertexFormat
- the value for thevertexFormat
record componentcount
- the value for thecount
record componentvertexCount
- the value for thevertexCount
record componentmode
- the value for themode
record componentelementFormat
- the value for theelementFormat
record componenthasNoVertexBuffer
- the value for thehasNoVertexBuffer
record componenthasNoIndexBuffer
- the value for thehasNoIndexBuffer
record component
-
-
Method Details
-
getIndexBufferStart
public int getIndexBufferStart()- Mappings:
Namespace Name Mixin selector official a
Ldxu$a;a()I
intermediary method_31957
Lnet/minecraft/class_287$class_4574;method_31957()I
named getIndexBufferStart
Lnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;getIndexBufferStart()I
-
getVertexBufferPosition
public int getVertexBufferPosition()- Mappings:
Namespace Name Mixin selector official b
Ldxu$a;b()I
intermediary method_43429
Lnet/minecraft/class_287$class_4574;method_43429()I
named getVertexBufferPosition
Lnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;getVertexBufferPosition()I
-
getVertexBufferLimit
public int getVertexBufferLimit()- Mappings:
Namespace Name Mixin selector official c
Ldxu$a;c()I
intermediary method_43430
Lnet/minecraft/class_287$class_4574;method_43430()I
named getVertexBufferLimit
Lnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;getVertexBufferLimit()I
-
getIndexBufferPosition
public int getIndexBufferPosition()- Mappings:
Namespace Name Mixin selector official d
Ldxu$a;d()I
intermediary method_43431
Lnet/minecraft/class_287$class_4574;method_43431()I
named getIndexBufferPosition
Lnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;getIndexBufferPosition()I
-
getIndexBufferLimit
public int getIndexBufferLimit()- Mappings:
Namespace Name Mixin selector official e
Ldxu$a;e()I
intermediary method_43432
Lnet/minecraft/class_287$class_4574;method_43432()I
named getIndexBufferLimit
Lnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;getIndexBufferLimit()I
-
getIndexBufferLength
private int getIndexBufferLength()- Mappings:
Namespace Name Mixin selector official n
Ldxu$a;n()I
intermediary method_31961
Lnet/minecraft/class_287$class_4574;method_31961()I
named getIndexBufferLength
Lnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;getIndexBufferLength()I
-
getIndexBufferEnd
public int getIndexBufferEnd()- Mappings:
Namespace Name Mixin selector official f
Ldxu$a;f()I
intermediary method_31958
Lnet/minecraft/class_287$class_4574;method_31958()I
named getIndexBufferEnd
Lnet/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 thevertexFormat
record component.- Returns:
- the value of the
vertexFormat
record component
-
count
public int count()Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-
vertexCount
public int vertexCount()Returns the value of thevertexCount
record component.- Returns:
- the value of the
vertexCount
record component
-
mode
Returns the value of themode
record component.- Returns:
- the value of the
mode
record component
-
elementFormat
Returns the value of theelementFormat
record component.- Returns:
- the value of the
elementFormat
record component
-
hasNoVertexBuffer
public boolean hasNoVertexBuffer()Returns the value of thehasNoVertexBuffer
record component.- Returns:
- the value of the
hasNoVertexBuffer
record component
-
hasNoIndexBuffer
public boolean hasNoIndexBuffer()Returns the value of thehasNoIndexBuffer
record component.- Returns:
- the value of the
hasNoIndexBuffer
record component
-