Record Class TrailParticle
java.lang.Object
java.lang.Record
dev.wyck.wrapper.environment.particle.options.TrailParticle
- Record Components:
target- The target location of the trail.color- The color of the trail.duration- The duration of the trail.
- All Implemented Interfaces:
ParticleData
@NullMarked
@AsOf("2.0.0")
public record TrailParticle(Location target, int color, int duration)
extends Record
implements ParticleData
Particle data for trail particles.
- Since:
- 2.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionTrailParticle(Location target, int color, int duration) Creates an instance of aTrailParticlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionapply(ParticleType particleType) Applies the particle data to the given particle type and returns the corresponding ParticleOptions.intcolor()Returns the value of thecolorrecord component.intduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static TrailParticletarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TrailParticle
-
-
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
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
target
-
color
-
duration
-