Record Class VertexFormatElement
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vertex.VertexFormatElement
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVertexFormatElement(String name, int offset, GpuFormat format) Creates an instance of aVertexFormatElementrecord class. -
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.name()Returns the value of thenamerecord component.intoffset()Returns the value of theoffsetrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
offset
private final int offsetThe field for theoffsetrecord component. -
format
The field for theformatrecord component.
-
-
Constructor Details
-
VertexFormatElement
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-