Record Class EchoParticle.Factory
java.lang.Object
java.lang.Record
net.trique.wardentools.particle.echo_particle.EchoParticle.Factory
- All Implemented Interfaces:
net.minecraft.client.particle.ParticleProvider<EchoParticleOption>
- Enclosing class:
EchoParticle
public static record EchoParticle.Factory(net.minecraft.client.particle.SpriteSet sprites)
extends Record
implements net.minecraft.client.particle.ParticleProvider<EchoParticleOption>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.particle.ParticleProvider
net.minecraft.client.particle.ParticleProvider.Sprite<T extends net.minecraft.core.particles.ParticleOptions> -
Constructor Summary
ConstructorsConstructorDescriptionFactory(net.minecraft.client.particle.SpriteSet sprites) Creates an instance of aFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.particle.ParticlecreateParticle(EchoParticleOption echoParticleOption, net.minecraft.client.multiplayer.ClientLevel clientLevel, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.client.particle.SpriteSetsprites()Returns the value of thespritesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Factory
public Factory(net.minecraft.client.particle.SpriteSet sprites) Creates an instance of aFactoryrecord class.- Parameters:
sprites- the value for thespritesrecord component
-
-
Method Details
-
createParticle
public net.minecraft.client.particle.Particle createParticle(EchoParticleOption echoParticleOption, net.minecraft.client.multiplayer.ClientLevel clientLevel, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed) - Specified by:
createParticlein interfacenet.minecraft.client.particle.ParticleProvider<EchoParticleOption>
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
sprites
public net.minecraft.client.particle.SpriteSet sprites()Returns the value of thespritesrecord component.- Returns:
- the value of the
spritesrecord component
-