Record Class SimpleVerticalParticle.ResetMobGrowthProvider
java.lang.Object
java.lang.Record
net.minecraft.client.particle.SimpleVerticalParticle.ResetMobGrowthProvider
- All Implemented Interfaces:
ParticleProvider<SimpleParticleType>
- Enclosing class:
SimpleVerticalParticle
public static record SimpleVerticalParticle.ResetMobGrowthProvider(SpriteSet sprite)
extends Record
implements ParticleProvider<SimpleParticleType>
-
Nested Class Summary
Nested classes/interfaces inherited from interface ParticleProvider
ParticleProvider.Sprite<T> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResetMobGrowthProvider(SpriteSet sprite) Creates an instance of aResetMobGrowthProviderrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreateParticle(SimpleParticleType options, ClientLevel level, double x, double y, double z, double xAux, double yAux, double zAux, RandomSource random) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sprite()Returns the value of thespriterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sprite
The field for thespriterecord component.
-
-
Constructor Details
-
ResetMobGrowthProvider
Creates an instance of aResetMobGrowthProviderrecord class.- Parameters:
sprite- the value for thespriterecord component
-
-
Method Details
-
createParticle
public Particle createParticle(SimpleParticleType options, ClientLevel level, double x, double y, double z, double xAux, double yAux, double zAux, RandomSource random) - Specified by:
createParticlein interfaceParticleProvider<SimpleParticleType>
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
sprite
Returns the value of thespriterecord component.- Returns:
- the value of the
spriterecord component
-