Record Class QuadParticleRenderState.PreparedBuffers
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.state.QuadParticleRenderState.PreparedBuffers
- Enclosing class:
QuadParticleRenderState
public static record QuadParticleRenderState.PreparedBuffers(int indexCount, GpuBufferSlice dynamicTransforms, Map<SingleQuadParticle.Layer, QuadParticleRenderState.PreparedLayer> layers)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GpuBufferSliceThe field for thedynamicTransformsrecord component.private final intThe field for theindexCountrecord component.private final Map<SingleQuadParticle.Layer, QuadParticleRenderState.PreparedLayer> The field for thelayersrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPreparedBuffers(int indexCount, GpuBufferSlice dynamicTransforms, Map<SingleQuadParticle.Layer, QuadParticleRenderState.PreparedLayer> layers) Creates an instance of aPreparedBuffersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedynamicTransformsrecord component.final 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.layers()Returns the value of thelayersrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
indexCount
private final int indexCountThe field for theindexCountrecord component. -
dynamicTransforms
The field for thedynamicTransformsrecord component. -
layers
The field for thelayersrecord component.
-
-
Constructor Details
-
PreparedBuffers
public PreparedBuffers(int indexCount, GpuBufferSlice dynamicTransforms, Map<SingleQuadParticle.Layer, QuadParticleRenderState.PreparedLayer> layers) Creates an instance of aPreparedBuffersrecord class.- Parameters:
indexCount- the value for theindexCountrecord componentdynamicTransforms- the value for thedynamicTransformsrecord componentlayers- the value for thelayersrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
indexCount
public int indexCount()Returns the value of theindexCountrecord component.- Returns:
- the value of the
indexCountrecord component
-
dynamicTransforms
Returns the value of thedynamicTransformsrecord component.- Returns:
- the value of the
dynamicTransformsrecord component
-
layers
Returns the value of thelayersrecord component.- Returns:
- the value of the
layersrecord component
-