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 named net/minecraft/client/render/BufferBuilder$DrawParametersintermediary net/minecraft/class_287$class_4574official ezv$anamed formatintermediary comp_749official anamed vertexCountintermediary comp_750official bnamed indexCountintermediary comp_751official cnamed modeintermediary comp_752official dnamed indexTypeintermediary comp_753official enamed indexOnlyintermediary comp_754official fnamed sequentialIndexintermediary comp_755official g
-
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
ConstructorsConstructorDescriptionDrawParameters(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.intReturns the total size of the index buffer and the vertex buffer combined.intprivate intintintintintfinal 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
-
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 named getVertexBufferSizeLnet/minecraft/client/render/BufferBuilder$DrawParameters;getVertexBufferSize()Iintermediary method_31957Lnet/minecraft/class_287$class_4574;method_31957()Iofficial aLezv$a;a()I
-
getVertexBufferStart
public int getVertexBufferStart()- Mappings:
Namespace Name Mixin selector named getVertexBufferStartLnet/minecraft/client/render/BufferBuilder$DrawParameters;getVertexBufferStart()Iintermediary method_43429Lnet/minecraft/class_287$class_4574;method_43429()Iofficial bLezv$a;b()I
-
getVertexBufferEnd
public int getVertexBufferEnd()- Mappings:
Namespace Name Mixin selector named getVertexBufferEndLnet/minecraft/client/render/BufferBuilder$DrawParameters;getVertexBufferEnd()Iintermediary method_43430Lnet/minecraft/class_287$class_4574;method_43430()Iofficial cLezv$a;c()I
-
getIndexBufferStart
public int getIndexBufferStart()- Mappings:
Namespace Name Mixin selector named getIndexBufferStartLnet/minecraft/client/render/BufferBuilder$DrawParameters;getIndexBufferStart()Iintermediary method_43431Lnet/minecraft/class_287$class_4574;method_43431()Iofficial dLezv$a;d()I
-
getIndexBufferEnd
public int getIndexBufferEnd()- Mappings:
Namespace Name Mixin selector named getIndexBufferEndLnet/minecraft/client/render/BufferBuilder$DrawParameters;getIndexBufferEnd()Iintermediary method_43432Lnet/minecraft/class_287$class_4574;method_43432()Iofficial eLezv$a;e()I
-
getIndexBufferSize
private int getIndexBufferSize()- Mappings:
Namespace Name Mixin selector named getIndexBufferSizeLnet/minecraft/client/render/BufferBuilder$DrawParameters;getIndexBufferSize()Iintermediary method_31961Lnet/minecraft/class_287$class_4574;method_31961()Iofficial nLezv$a;n()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 named getBufferSizeLnet/minecraft/client/render/BufferBuilder$DrawParameters;getBufferSize()Iintermediary method_31958Lnet/minecraft/class_287$class_4574;method_31958()Iofficial fLezv$a;f()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
-