Package net.minecraft.client.particle
Record Class SingleQuadParticle.Layer
java.lang.Object
java.lang.Record
net.minecraft.client.particle.SingleQuadParticle.Layer
- Enclosing class:
SingleQuadParticle
public static record SingleQuadParticle.Layer(boolean translucent, ResourceLocation textureAtlasLocation, RenderPipeline pipeline)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SingleQuadParticle.Layerprivate final RenderPipelineThe field for thepipelinerecord component.static final SingleQuadParticle.Layerprivate final ResourceLocationThe field for thetextureAtlasLocationrecord component.private final booleanThe field for thetranslucentrecord component.static final SingleQuadParticle.Layer -
Constructor Summary
ConstructorsConstructorDescriptionLayer(boolean translucent, ResourceLocation textureAtlasLocation, RenderPipeline pipeline) Creates an instance of aLayerrecord 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.pipeline()Returns the value of thepipelinerecord component.Returns the value of thetextureAtlasLocationrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetranslucentrecord component.
-
Field Details
-
translucent
private final boolean translucentThe field for thetranslucentrecord component. -
textureAtlasLocation
The field for thetextureAtlasLocationrecord component. -
pipeline
The field for thepipelinerecord component. -
TERRAIN
-
OPAQUE
-
TRANSLUCENT
-
-
Constructor Details
-
Layer
Creates an instance of aLayerrecord class.- Parameters:
translucent- the value for thetranslucentrecord componenttextureAtlasLocation- the value for thetextureAtlasLocationrecord componentpipeline- the value for thepipelinerecord component
-
-
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 '=='. -
translucent
public boolean translucent()Returns the value of thetranslucentrecord component.- Returns:
- the value of the
translucentrecord component
-
textureAtlasLocation
Returns the value of thetextureAtlasLocationrecord component.- Returns:
- the value of the
textureAtlasLocationrecord component
-
pipeline
Returns the value of thepipelinerecord component.- Returns:
- the value of the
pipelinerecord component
-