Record Class GeyserBaseParticle
java.lang.Object
java.lang.Record
dev.wyck.environment.particle.options.GeyserBaseParticle
- Record Components:
waterBlocks- The number of water blocks.burstImpulseBase- The base impulse for the burst effect.
- All Implemented Interfaces:
ParticleData
@NullMarked
@AsOf("3.0.0")
public record GeyserBaseParticle(int waterBlocks, float burstImpulseBase)
extends Record
implements ParticleData
Particle data for geyser base particles.
- Since:
- 3.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserBaseParticle(int waterBlocks, float burstImpulseBase) Creates an instance of aGeyserBaseParticlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionapply(ParticleType particleType) Applies the particle data to the given particle type and returns the corresponding ParticleOptions.floatReturns the value of theburstImpulseBaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static GeyserBaseParticleof(int waterBlocks, float burstImpulseBase) Creates a new GeyserBaseParticle with the given water blocks and burst impulse base.final StringtoString()Returns a string representation of this record class.intReturns the value of thewaterBlocksrecord component.
-
Constructor Details
-
GeyserBaseParticle
public GeyserBaseParticle(int waterBlocks, float burstImpulseBase) Creates an instance of aGeyserBaseParticlerecord class.- Parameters:
waterBlocks- the value for thewaterBlocksrecord componentburstImpulseBase- the value for theburstImpulseBaserecord 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 new GeyserBaseParticle with the given water blocks and burst impulse base.- Parameters:
waterBlocks- The number of water blocks.burstImpulseBase- The base impulse for the burst effect.- Returns:
- A new GeyserBaseParticle.
-
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. -
waterBlocks
public int waterBlocks()Returns the value of thewaterBlocksrecord component.- Returns:
- the value of the
waterBlocksrecord component
-
burstImpulseBase
public float burstImpulseBase()Returns the value of theburstImpulseBaserecord component.- Returns:
- the value of the
burstImpulseBaserecord component
-