Record Class SculkChargeParticle.Provider
java.lang.Object
java.lang.Record
net.minecraft.client.particle.SculkChargeParticle.Provider
- All Implemented Interfaces:
ParticleProvider<SculkChargeParticleOptions>
- Enclosing class:
SculkChargeParticle
public static record SculkChargeParticle.Provider(SpriteSet sprite)
extends Record
implements ParticleProvider<SculkChargeParticleOptions>
-
Nested Class Summary
Nested classes/interfaces inherited from interface ParticleProvider
ParticleProvider.Sprite<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateParticle(SculkChargeParticleOptions 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
-
Provider
Creates an instance of aProviderrecord class.- Parameters:
sprite- the value for thespriterecord component
-
-
Method Details
-
createParticle
public Particle createParticle(SculkChargeParticleOptions options, ClientLevel level, double x, double y, double z, double xAux, double yAux, double zAux, RandomSource random) - Specified by:
createParticlein interfaceParticleProvider<SculkChargeParticleOptions>
-
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
-