Interface ParticleTypePowerMotion
public interface ParticleTypePowerMotion
Class used to represent particle type that takes a power parameter.
It provides a non-reflective of method overloads
to construct ParticleTypeMotion with selected power.
All of methods does not validate parameters in any way.
IMPORTANT NOTE: All methods annotated with Shared annotation
caches and returns exactly one and the same instance with changed state between method calls.
For an independent copy of returned instances, check detachCopy methods on them.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this particle is supported by this Spigot version.power(double power) Selects power this particle should have.
-
Method Details
-
power
Selects power this particle should have.
Parameters are not validated in any way.
This method is overridden by dynamically generated subclasses.
- Parameters:
power- a power which this particle should have.- Returns:
- a valid
ParticleTypeMotionobject with selected roll angle.
-
isPresent
boolean isPresent()Checks if this particle is supported by this Spigot version.
This method is overridden by dynamically generated subclasses.
- Returns:
- true if this particle is supported by this Spigot version, false otherwise.
-