Package net.minecraft.client.render
Record Class BufferBuilder.DrawParameters
java.lang.Object
java.lang.Record
net.minecraft.client.render.BufferBuilder.DrawParameters
- Record Components:
format
-vertexCount
-indexCount
-mode
-indexType
-indexOnly
-sequentialIndex
-
- Enclosing class:
BufferBuilder
@Environment(CLIENT)
public static record BufferBuilder.DrawParameters(VertexFormat format, int vertexCount, int indexCount, VertexFormat.DrawMode mode, VertexFormat.IndexType indexType, boolean indexOnly, boolean sequentialIndex)
extends Record
- Mappings:
Namespace Name official ehq$a
intermediary net/minecraft/class_287$class_4574
named net/minecraft/client/render/BufferBuilder$DrawParameters
official a
intermediary comp_749
named format
official b
intermediary comp_750
named vertexCount
official c
intermediary comp_751
named indexCount
official d
intermediary comp_752
named mode
official e
intermediary comp_753
named indexType
official f
intermediary comp_754
named indexOnly
official g
intermediary comp_755
named sequentialIndex
-
Field Summary
Modifier and TypeFieldDescriptionprivate final VertexFormat
The field for theformat
record component.private final int
The field for theindexCount
record component.private final boolean
The field for theindexOnly
record component.private final VertexFormat.IndexType
The field for theindexType
record component.private final VertexFormat.DrawMode
The field for themode
record component.private final boolean
The field for thesequentialIndex
record component.private final int
The field for thevertexCount
record component. -
Constructor Summary
ConstructorDescriptionDrawParameters
(VertexFormat vertexFormat, int int2, int int3, VertexFormat.DrawMode drawMode, VertexFormat.IndexType indexType, boolean bool, boolean bool2) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.format()
Returns the value of theformat
record component.int
Returns the total size of the index buffer and the vertex buffer combined.int
private int
int
int
int
int
final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theindexCount
record component.boolean
Returns the value of theindexOnly
record component.Returns the value of theindexType
record component.mode()
Returns the value of themode
record component.boolean
Returns the value of thesequentialIndex
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of thevertexCount
record component.
-
Field Details
-
format
The field for theformat
record component. -
vertexCount
private final int vertexCountThe field for thevertexCount
record component. -
indexCount
private final int indexCountThe field for theindexCount
record component. -
mode
The field for themode
record component. -
indexType
The field for theindexType
record component. -
indexOnly
private final boolean indexOnlyThe field for theindexOnly
record component. -
sequentialIndex
private final boolean sequentialIndexThe field for thesequentialIndex
record component.
-
-
Constructor Details
-
DrawParameters
public DrawParameters(VertexFormat vertexFormat, int int2, int int3, VertexFormat.DrawMode drawMode, VertexFormat.IndexType indexType, boolean bool, boolean bool2)
-
-
Method Details
-
getVertexBufferSize
public int getVertexBufferSize()- Mappings:
Namespace Name Mixin selector official a
Lehq$a;a()I
intermediary method_31957
Lnet/minecraft/class_287$class_4574;method_31957()I
named getVertexBufferSize
Lnet/minecraft/client/render/BufferBuilder$DrawParameters;getVertexBufferSize()I
-
getVertexBufferStart
public int getVertexBufferStart()- Mappings:
Namespace Name Mixin selector official b
Lehq$a;b()I
intermediary method_43429
Lnet/minecraft/class_287$class_4574;method_43429()I
named getVertexBufferStart
Lnet/minecraft/client/render/BufferBuilder$DrawParameters;getVertexBufferStart()I
-
getVertexBufferEnd
public int getVertexBufferEnd()- Mappings:
Namespace Name Mixin selector official c
Lehq$a;c()I
intermediary method_43430
Lnet/minecraft/class_287$class_4574;method_43430()I
named getVertexBufferEnd
Lnet/minecraft/client/render/BufferBuilder$DrawParameters;getVertexBufferEnd()I
-
getIndexBufferStart
public int getIndexBufferStart()- Mappings:
Namespace Name Mixin selector official d
Lehq$a;d()I
intermediary method_43431
Lnet/minecraft/class_287$class_4574;method_43431()I
named getIndexBufferStart
Lnet/minecraft/client/render/BufferBuilder$DrawParameters;getIndexBufferStart()I
-
getIndexBufferEnd
public int getIndexBufferEnd()- Mappings:
Namespace Name Mixin selector official e
Lehq$a;e()I
intermediary method_43432
Lnet/minecraft/class_287$class_4574;method_43432()I
named getIndexBufferEnd
Lnet/minecraft/client/render/BufferBuilder$DrawParameters;getIndexBufferEnd()I
-
getIndexBufferSize
private int getIndexBufferSize()- Mappings:
Namespace Name Mixin selector official n
Lehq$a;n()I
intermediary method_31961
Lnet/minecraft/class_287$class_4574;method_31961()I
named getIndexBufferSize
Lnet/minecraft/client/render/BufferBuilder$DrawParameters;getIndexBufferSize()I
-
getBufferSize
public int getBufferSize()Returns the total size of the index buffer and the vertex buffer combined.- Returns:
- the total size of the index buffer and the vertex buffer combined
- Mappings:
Namespace Name Mixin selector official f
Lehq$a;f()I
intermediary method_31958
Lnet/minecraft/class_287$class_4574;method_31958()I
named getBufferSize
Lnet/minecraft/client/render/BufferBuilder$DrawParameters;getBufferSize()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 theformat
record component.- Returns:
- the value of the
format
record component
-
vertexCount
public int vertexCount()Returns the value of thevertexCount
record component.- Returns:
- the value of the
vertexCount
record component
-
indexCount
public int indexCount()Returns the value of theindexCount
record component.- Returns:
- the value of the
indexCount
record component
-
mode
Returns the value of themode
record component.- Returns:
- the value of the
mode
record component
-
indexType
Returns the value of theindexType
record component.- Returns:
- the value of the
indexType
record component
-
indexOnly
public boolean indexOnly()Returns the value of theindexOnly
record component.- Returns:
- the value of the
indexOnly
record component
-
sequentialIndex
public boolean sequentialIndex()Returns the value of thesequentialIndex
record component.- Returns:
- the value of the
sequentialIndex
record component
-