Record Class WispParticle.Provider
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.client.particle.wisp.WispParticle.Provider
- All Implemented Interfaces:
net.minecraft.client.particle.ParticleProvider<WispParticleOptions>
- Enclosing class:
WispParticle
public static record WispParticle.Provider(net.minecraft.client.particle.SpriteSet sprites)
extends Record
implements net.minecraft.client.particle.ParticleProvider<WispParticleOptions>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.particle.ParticleProvider
net.minecraft.client.particle.ParticleProvider.Sprite<T> -
Constructor Summary
ConstructorsConstructorDescriptionProvider(net.minecraft.client.particle.SpriteSet sprites) Creates an instance of aProviderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.particle.ParticlecreateParticle(WispParticleOptions type, net.minecraft.client.multiplayer.ClientLevel level, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed, net.minecraft.util.RandomSource random) 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
-
Provider
public Provider(net.minecraft.client.particle.SpriteSet sprites) Creates an instance of aProviderrecord class.- Parameters:
sprites- the value for thespritesrecord component
-
-
Method Details
-
createParticle
public net.minecraft.client.particle.Particle createParticle(WispParticleOptions type, net.minecraft.client.multiplayer.ClientLevel level, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed, net.minecraft.util.RandomSource random) - Specified by:
createParticlein interfacenet.minecraft.client.particle.ParticleProvider<WispParticleOptions>
-
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). -
sprites
public net.minecraft.client.particle.SpriteSet sprites()Returns the value of thespritesrecord component.- Returns:
- the value of the
spritesrecord component
-