Class CustomParticleEffect

java.lang.Object
wbs.utils.util.particles.WbsParticleEffect
wbs.utils.util.particles.CustomParticleEffect

public abstract class CustomParticleEffect extends WbsParticleEffect
An abstract particle effect to be overridden anonymously
  • Constructor Details

    • CustomParticleEffect

      public CustomParticleEffect()
  • Method Details

    • setPoints

      public CustomParticleEffect setPoints(List<org.bukkit.util.Vector> points)
      Set the points to be used in play(Particle, Location)
      Parameters:
      points - The new list of points to play at
      Returns:
      The same particle effect
    • build

      public final CustomParticleEffect 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 abstract CustomParticleEffect 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.
      Specified by:
      play in class WbsParticleEffect
      Parameters:
      particle - The particle type to use
      loc - The location at which to run the effect.
      Returns:
      The same object.
    • clone

      public CustomParticleEffect clone()
      Specified by:
      clone in class WbsParticleEffect