Record Class DustTransitionParticle
java.lang.Object
java.lang.Record
dev.wyck.wrapper.environment.particle.options.DustTransitionParticle
- Record Components:
fromColor- The color of the dust.toColor- The color of the dust.scale- The scale of the dust.
- All Implemented Interfaces:
ParticleData
@NullMarked
@AsOf("2.0.0")
public record DustTransitionParticle(int fromColor, int toColor, float scale)
extends Record
implements ParticleData
Particle data for dust transition particles.
- Since:
- 2.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionDustTransitionParticle(int fromColor, int toColor, float scale) Creates an instance of aDustTransitionParticlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionapply(ParticleType particleType) Applies the particle data to the given particle type and returns the corresponding ParticleOptions.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefromColorrecord component.final inthashCode()Returns a hash code value for this object.static DustTransitionParticlestatic DustTransitionParticlefloatscale()Returns the value of thescalerecord component.inttoColor()Returns the value of thetoColorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DustTransitionParticle
public DustTransitionParticle(int fromColor, int toColor, float scale) Creates an instance of aDustTransitionParticlerecord class.
-
-
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
@AsOf("2.0.0") public static DustTransitionParticle of(String fromHexColor, String toHexColor, float scale) -
of
-
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. -
fromColor
-
toColor
-
scale
-