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, @Nullable OitPipelineSet oitPipelineSet)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable OitPipelineSetThe field for theoitPipelineSetrecord component.static 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) Layer(boolean translucent, Identifier textureAtlasLocation, RenderPipeline pipeline, @Nullable OitPipelineSet oitPipelineSet) 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.Returns the value of theoitPipelineSetrecord component.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. -
oitPipelineSet
The field for theoitPipelineSetrecord component. -
OPAQUE_TERRAIN
-
TRANSLUCENT_TERRAIN
-
OPAQUE_ITEMS
-
TRANSLUCENT_ITEMS
-
OPAQUE
-
TRANSLUCENT
-
-
Constructor Details
-
Layer
-
Layer
public Layer(boolean translucent, Identifier textureAtlasLocation, RenderPipeline pipeline, @Nullable OitPipelineSet oitPipelineSet) Creates an instance of aLayerrecord class.- Parameters:
translucent- the value for thetranslucentrecord componenttextureAtlasLocation- the value for thetextureAtlasLocationrecord componentpipeline- the value for thepipelinerecord componentoitPipelineSet- the value for theoitPipelineSetrecord 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
-
oitPipelineSet
Returns the value of theoitPipelineSetrecord component.- Returns:
- the value of the
oitPipelineSetrecord component
-