Class SpiralParticleEffect


public class SpiralParticleEffect extends CircleParticleEffect
A particle effect that draws a ring but specifically controls speed to move outwards to draw a spiral
  • Constructor Details

    • SpiralParticleEffect

      public SpiralParticleEffect()
    • SpiralParticleEffect

      public SpiralParticleEffect(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory)
      Create this effect from a ConfigurationSection, logging errors in the given settings
      Parameters:
      section - The section where this effect is defined
      settings - The settings to log errors against
      directory - The path taken through the config to get to this point, for logging purposes
  • Method Details

    • clone

      public SpiralParticleEffect clone()
      Specified by:
      clone in class WbsParticleEffect
    • build

      public SpiralParticleEffect build()
      Description copied from class: WbsParticleEffect
      Generate the particle set based on current settings. Call this before the first time it is run, or call buildAndRun each time to run based on current settings.
      Specified by:
      build in class WbsParticleEffect
      Returns:
      The same object.
    • play

      public SpiralParticleEffect play(org.bukkit.Particle particle, org.bukkit.Location loc)
      Description copied from class: WbsParticleEffect
      Run the effect pattern at the given location with the given particle. For shapes needing two locations (such as Line), a random second location will be chosen a random number of blocks away from the given location.
      Overrides:
      play in class VelocityParticleEffect
      Parameters:
      particle - The particle type to use
      loc - The location at which to run the effect.
      Returns:
      The same object.
    • getClockwise

      public boolean getClockwise()
      Returns:
      Whether or not to draw clockwise
    • setClockwise

      public SpiralParticleEffect setClockwise(boolean clockwise)
      Parameters:
      clockwise - Whether or not to draw clockwise
      Returns:
      The same particle effect
    • writeToConfig

      public void writeToConfig(org.bukkit.configuration.ConfigurationSection section, String path)
      Description copied from class: WbsParticleEffect
      Overrides:
      writeToConfig in class CircleParticleEffect
      Parameters:
      section - The section to write to
      path - The field/path inside the given section