Record Class QuadParticleRenderState.PreparedLayer
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.state.QuadParticleRenderState.PreparedLayer
- Enclosing class:
QuadParticleRenderState
public static record QuadParticleRenderState.PreparedLayer(int vertexOffset, int indexCount)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theindexCountrecord component.private final intThe field for thevertexOffsetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPreparedLayer(int vertexOffset, int indexCount) Creates an instance of aPreparedLayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theindexCountrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thevertexOffsetrecord component.
-
Field Details
-
vertexOffset
private final int vertexOffsetThe field for thevertexOffsetrecord component. -
indexCount
private final int indexCountThe field for theindexCountrecord component.
-
-
Constructor Details
-
PreparedLayer
public PreparedLayer(int vertexOffset, int indexCount) Creates an instance of aPreparedLayerrecord class.- Parameters:
vertexOffset- the value for thevertexOffsetrecord componentindexCount- the value for theindexCountrecord component
-
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
vertexOffset
public int vertexOffset()Returns the value of thevertexOffsetrecord component.- Returns:
- the value of the
vertexOffsetrecord component
-
indexCount
public int indexCount()Returns the value of theindexCountrecord component.- Returns:
- the value of the
indexCountrecord component
-