Record Class NutChipParticle.BigChunkProvider
java.lang.Object
java.lang.Record
nokunami.floral_warfare.client.particles.NutChipParticle.BigChunkProvider
- All Implemented Interfaces:
net.minecraft.client.particle.ParticleProvider<net.minecraft.core.particles.SimpleParticleType>
- Enclosing class:
- NutChipParticle
public static record NutChipParticle.BigChunkProvider(net.minecraft.client.particle.SpriteSet sprite)
extends Record
implements net.minecraft.client.particle.ParticleProvider<net.minecraft.core.particles.SimpleParticleType>
-
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
ConstructorsConstructorDescriptionBigChunkProvider(net.minecraft.client.particle.SpriteSet sprite) Creates an instance of aBigChunkProviderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.particle.ParticlecreateParticle(@NotNull net.minecraft.core.particles.SimpleParticleType type, @NotNull net.minecraft.client.multiplayer.ClientLevel level, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) 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.SpriteSetsprite()Returns the value of thespriterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BigChunkProvider
public BigChunkProvider(net.minecraft.client.particle.SpriteSet sprite) Creates an instance of aBigChunkProviderrecord class.- Parameters:
sprite- the value for thespriterecord component
-
-
Method Details
-
createParticle
public net.minecraft.client.particle.Particle createParticle(@NotNull @NotNull net.minecraft.core.particles.SimpleParticleType type, @NotNull @NotNull net.minecraft.client.multiplayer.ClientLevel level, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) - Specified by:
createParticlein interfacenet.minecraft.client.particle.ParticleProvider<net.minecraft.core.particles.SimpleParticleType>
-
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). -
sprite
public net.minecraft.client.particle.SpriteSet sprite()Returns the value of thespriterecord component.- Returns:
- the value of the
spriterecord component
-