Record Class QuadParticleFeatureRenderer.PreparedGroup
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.feature.QuadParticleFeatureRenderer.PreparedGroup
- Enclosing class:
QuadParticleFeatureRenderer
private static record QuadParticleFeatureRenderer.PreparedGroup(Map<SingleQuadParticle.Layer, StagedVertexBuffer.Draw> layers, boolean translucent)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<SingleQuadParticle.Layer, StagedVertexBuffer.Draw> The field for thelayersrecord component.private final booleanThe field for thetranslucentrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePreparedGroup(Map<SingleQuadParticle.Layer, StagedVertexBuffer.Draw> layers, boolean translucent) Creates an instance of aPreparedGrouprecord 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.layers()Returns the value of thelayersrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetranslucentrecord component.
-
Field Details
-
layers
The field for thelayersrecord component. -
translucent
private final boolean translucentThe field for thetranslucentrecord component.
-
-
Constructor Details
-
PreparedGroup
private PreparedGroup(Map<SingleQuadParticle.Layer, StagedVertexBuffer.Draw> layers, boolean translucent) Creates an instance of aPreparedGrouprecord class.- Parameters:
layers- the value for thelayersrecord componenttranslucent- the value for thetranslucentrecord 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. -
layers
Returns the value of thelayersrecord component.- Returns:
- the value of the
layersrecord component
-
translucent
public boolean translucent()Returns the value of thetranslucentrecord component.- Returns:
- the value of the
translucentrecord component
-