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, Identifier textureAtlasLocation, RenderPipeline pipeline)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SingleQuadParticle.Layerstatic final SingleQuadParticle.Layerstatic final SingleQuadParticle.Layerprivate final RenderPipelineThe field for thepipelinerecord component.private final IdentifierThe field for thetextureAtlasLocationrecord component.private final booleanThe field for thetranslucentrecord component.static final SingleQuadParticle.Layerstatic final SingleQuadParticle.Layerstatic final SingleQuadParticle.Layer -
Constructor Summary
ConstructorsConstructorDescriptionLayer(boolean translucent, Identifier textureAtlasLocation, RenderPipeline pipeline) Creates an instance of aLayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SingleQuadParticle.LayerbySprite(TextureAtlasSprite sprite) final 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. -
OPAQUE_TERRAIN
-
TRANSLUCENT_TERRAIN
-
OPAQUE_ITEMS
-
TRANSLUCENT_ITEMS
-
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
-
bySprite
-
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. -
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
-