Class ScalableEffect
java.lang.Object
com.destroystokyo.paper.ParticleBuilder
org.skriptlang.skript.bukkit.particles.particleeffects.ParticleEffect
org.skriptlang.skript.bukkit.particles.particleeffects.ScalableEffect
- All Implemented Interfaces:
Debuggable,Cloneable
A particle effect that can be scaled.
Currently used for `sweep attack` and `explosion` particles.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.skriptlang.skript.bukkit.particles.particleeffects.ParticleEffect
acceptsData, allPlayers, count, data, dataType, distribution, distribution, extra, force, getAllNamesWithoutData, isUsingNormalDistribution, location, location, of, of, offset, offset, offset, parse, particle, receivers, receivers, receivers, receivers, receivers, receivers, receivers, receivers, receivers, receivers, source, spawn, spawn, toString, toString, toStringMethods inherited from class com.destroystokyo.paper.ParticleBuilder
clone, color, color, color, color, color, colorTransition, colorTransition, colorTransition, colorTransition, count, data, extra, force, hasReceivers, location, offsetX, offsetY, offsetZ, particle, receivers, source
-
Constructor Details
-
ScalableEffect
@Internal public ScalableEffect(org.bukkit.Particle particle) Internal constructor. UseParticleEffect.of(Particle)instead.- Parameters:
particle- The particle type
-
-
Method Details
-
hasScale
public boolean hasScale()Checks if the effect will use the offset as scale. The scale is only applied if the count is 0.- Returns:
- true if the effect will use the scale, false otherwise
-
scale
Sets the scale of the particles by setting the offset and count. This will set the count to 0 to ensure the scale is applied.- Parameters:
scale- the scale value- Returns:
- this effect for chaining
-
scale
public double scale()Gets the current scale of the particles.- Returns:
- the scale value
-
copy
- Overrides:
copyin classParticleEffect- Returns:
- a copy of this scalable effect
-