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 ehw$aintermediary net/minecraft/class_287$class_4574named net/minecraft/client/render/BufferBuilder$DrawParametersofficial 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
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 official aLehw$a;a()Iintermediary method_31957Lnet/minecraft/class_287$class_4574;method_31957()Inamed getVertexBufferSizeLnet/minecraft/client/render/BufferBuilder$DrawParameters;getVertexBufferSize()I
-
getVertexBufferStart
public int getVertexBufferStart()- Mappings:
Namespace Name Mixin selector official bLehw$a;b()Iintermediary method_43429Lnet/minecraft/class_287$class_4574;method_43429()Inamed getVertexBufferStartLnet/minecraft/client/render/BufferBuilder$DrawParameters;getVertexBufferStart()I
-
getVertexBufferEnd
public int getVertexBufferEnd()- Mappings:
Namespace Name Mixin selector official cLehw$a;c()Iintermediary method_43430Lnet/minecraft/class_287$class_4574;method_43430()Inamed getVertexBufferEndLnet/minecraft/client/render/BufferBuilder$DrawParameters;getVertexBufferEnd()I
-
getIndexBufferStart
public int getIndexBufferStart()- Mappings:
Namespace Name Mixin selector official dLehw$a;d()Iintermediary method_43431Lnet/minecraft/class_287$class_4574;method_43431()Inamed getIndexBufferStartLnet/minecraft/client/render/BufferBuilder$DrawParameters;getIndexBufferStart()I
-
getIndexBufferEnd
public int getIndexBufferEnd()- Mappings:
Namespace Name Mixin selector official eLehw$a;e()Iintermediary method_43432Lnet/minecraft/class_287$class_4574;method_43432()Inamed getIndexBufferEndLnet/minecraft/client/render/BufferBuilder$DrawParameters;getIndexBufferEnd()I
-
getIndexBufferSize
private int getIndexBufferSize()- Mappings:
Namespace Name Mixin selector official nLehw$a;n()Iintermediary method_31961Lnet/minecraft/class_287$class_4574;method_31961()Inamed getIndexBufferSizeLnet/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 fLehw$a;f()Iintermediary method_31958Lnet/minecraft/class_287$class_4574;method_31958()Inamed getBufferSizeLnet/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 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
-