Contents
Record Class AbilityProjectileLaunchData
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.abilities.trigger.AbilityProjectileLaunchData
- Record Components:
projectileConfigId- The ProjectileConfig to launch.ignorePitch- Whether to ignore the caster's look pitch (ground waves).pierce- Whether the projectile flies through entities.distance- Piercing only: travel before the course ends.lifetimeS- Piercing only: maximum flight seconds.spectral- Whether blocks are ignored.scale- Uniform model and hit volume scale.speed- Multiplier on the ProjectileConfig's LaunchForce.attributes- Resolved ability attributes to stamp onto the projectile.onHitEffectIds- Rune-injected on-hit effects to stamp onto the projectile.elementalCauseId- Damage cause a conversion rune re-keys the ability's elemental damage to.trailParticleId- Optional one-shot particle system burst at the projectile's position while it travels (paints the path).trailIntervalS- Seconds between trail bursts.trailScale- Base scale of the trail bursts, multiplied byscale.trailColor- Base tint of the trail bursts; an element conversion overrides it with the element's color.
public record AbilityProjectileLaunchData(@Nonnull String projectileConfigId, boolean ignorePitch, boolean pierce, double distance, float lifetimeS, boolean spectral, float scale, float speed, @Nullable Map<String,Float> attributes, @Nullable String[] onHitEffectIds, @Nullable String elementalCauseId, @Nullable String trailParticleId, float trailIntervalS, float trailScale, @Nullable Color trailColor)
extends Record
Everything one ability projectile launch needs, resolved at cast time (rune attributes
already folded into the values). Carries the projectile config id rather than the
resolved asset so a launch stored across ticks (e.g. a split projectile's children)
survives asset reloads.
-
Constructor Summary
ConstructorsConstructorDescriptionAbilityProjectileLaunchData(String projectileConfigId, boolean ignorePitch, boolean pierce, double distance, float lifetimeS, boolean spectral, float scale, float speed, Map<String, Float> attributes, String[] onHitEffectIds, String elementalCauseId, String trailParticleId, float trailIntervalS, float trailScale, Color trailColor) Creates an instance of aAbilityProjectileLaunchDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.doubledistance()Returns the value of thedistancerecord component.Returns the value of theelementalCauseIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theignorePitchrecord component.floatReturns the value of thelifetimeSrecord component.String[]Returns the value of theonHitEffectIdsrecord component.booleanpierce()Returns the value of thepiercerecord component.Returns the value of theprojectileConfigIdrecord component.floatscale()Returns the value of thescalerecord component.booleanspectral()Returns the value of thespectralrecord component.floatspeed()Returns the value of thespeedrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrailColorrecord component.floatReturns the value of thetrailIntervalSrecord component.Returns the value of thetrailParticleIdrecord component.floatReturns the value of thetrailScalerecord component.
-
Constructor Details
-
AbilityProjectileLaunchData
public AbilityProjectileLaunchData(@Nonnull String projectileConfigId, boolean ignorePitch, boolean pierce, double distance, float lifetimeS, boolean spectral, float scale, float speed, @Nullable Map<String, Float> attributes, @Nullable String[] onHitEffectIds, @Nullable String elementalCauseId, @Nullable String trailParticleId, float trailIntervalS, float trailScale, @Nullable Color trailColor) Creates an instance of aAbilityProjectileLaunchDatarecord class.- Parameters:
projectileConfigId- the value for theprojectileConfigIdrecord componentignorePitch- the value for theignorePitchrecord componentpierce- the value for thepiercerecord componentdistance- the value for thedistancerecord componentlifetimeS- the value for thelifetimeSrecord componentspectral- the value for thespectralrecord componentscale- the value for thescalerecord componentspeed- the value for thespeedrecord componentattributes- the value for theattributesrecord componentonHitEffectIds- the value for theonHitEffectIdsrecord componentelementalCauseId- the value for theelementalCauseIdrecord componenttrailParticleId- the value for thetrailParticleIdrecord componenttrailIntervalS- the value for thetrailIntervalSrecord componenttrailScale- the value for thetrailScalerecord componenttrailColor- the value for thetrailColorrecord component
-
-
Method Details
-
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. -
projectileConfigId
Returns the value of theprojectileConfigIdrecord component.- Returns:
- the value of the
projectileConfigIdrecord component
-
ignorePitch
public boolean ignorePitch()Returns the value of theignorePitchrecord component.- Returns:
- the value of the
ignorePitchrecord component
-
pierce
-
distance
-
lifetimeS
-
spectral
-
scale
-
speed
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
onHitEffectIds
Returns the value of theonHitEffectIdsrecord component.- Returns:
- the value of the
onHitEffectIdsrecord component
-
elementalCauseId
Returns the value of theelementalCauseIdrecord component.- Returns:
- the value of the
elementalCauseIdrecord component
-
trailParticleId
Returns the value of thetrailParticleIdrecord component.- Returns:
- the value of the
trailParticleIdrecord component
-
trailIntervalS
public float trailIntervalS()Returns the value of thetrailIntervalSrecord component.- Returns:
- the value of the
trailIntervalSrecord component
-
trailScale
public float trailScale()Returns the value of thetrailScalerecord component.- Returns:
- the value of the
trailScalerecord component
-
trailColor
Returns the value of thetrailColorrecord component.- Returns:
- the value of the
trailColorrecord component
-