Package net.minecraft.client.render
Record Class BuiltBuffer.DrawParameters
java.lang.Object
java.lang.Record
net.minecraft.client.render.BuiltBuffer.DrawParameters
- Record Components:
format-vertexCount-indexCount-mode-indexType-
- Enclosing class:
BuiltBuffer
@Environment(CLIENT)
public static record BuiltBuffer.DrawParameters(VertexFormat format, int vertexCount, int indexCount, VertexFormat.DrawMode mode, VertexFormat.IndexType indexType)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/BuiltBuffer$DrawParametersintermediary net/minecraft/class_9801$class_4574official fbh$anamed formatintermediary comp_749official anamed vertexCountintermediary comp_750official bnamed indexCountintermediary comp_751official cnamed modeintermediary comp_752official dnamed indexTypeintermediary comp_753official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VertexFormatThe field for theformatrecord component.private final intThe field for theindexCountrecord component.private final VertexFormat.IndexTypeThe field for theindexTyperecord component.private final VertexFormat.DrawModeThe field for themoderecord component.private final intThe field for thevertexCountrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDrawParameters(VertexFormat vertexFormat, int int2, int int3, VertexFormat.DrawMode drawMode, VertexFormat.IndexType indexType) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theindexCountrecord component.Returns the value of theindexTyperecord component.mode()Returns the value of themoderecord 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.
-
-
Constructor Details
-
DrawParameters
public DrawParameters(VertexFormat vertexFormat, int int2, int int3, VertexFormat.DrawMode drawMode, VertexFormat.IndexType indexType)
-
-
Method Details
-
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
-