Record Class ShriekParticle
java.lang.Object
java.lang.Record
dev.wyck.environment.particle.options.ShriekParticle
- Record Components:
delay- the delay in ticks before the shriek particle is emitted
- All Implemented Interfaces:
ParticleData
@NullMarked
@AsOf("3.3.0")
public record ShriekParticle(int delay)
extends Record
implements ParticleData
Particle data for a
ParticleTypes.SHRIEK.- Since:
- 3.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionShriekParticle(int delay) Creates an instance of aShriekParticlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionapply(ParticleType particleType) Applies the particle data to the given particle type and returns the corresponding ParticleOptions.intdelay()Returns the value of thedelayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static ShriekParticleof(int delay) Creates a newShriekParticleinstance with the specified delay.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShriekParticle
public ShriekParticle(int delay) Creates an instance of aShriekParticlerecord class.- Parameters:
delay- the value for thedelayrecord component
-
-
Method Details
-
apply
Description copied from interface:ParticleDataApplies the particle data to the given particle type and returns the corresponding ParticleOptions.- Specified by:
applyin interfaceParticleData- Parameters:
particleType- The particle type to which the data will be applied.- Returns:
- The ParticleOptions representing the applied particle data.
-
of
Creates a newShriekParticleinstance with the specified delay.- Parameters:
delay- the delay in ticks before the shriek particle is emitted- Returns:
- a new
ShriekParticleinstance - Since:
- 3.3.0
-
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 with thecomparemethod from their corresponding wrapper classes. -
delay
-