Class PulseGenerator

java.lang.Object
wbs.utils.util.providers.generator.num.DoubleGenerator
wbs.utils.util.providers.generator.num.PulseGenerator
All Implemented Interfaces:
Provider, Refreshable

public class PulseGenerator extends DoubleGenerator
A generator that moves between two NumProviders using a sine wave, over a given period.
  • Constructor Details

    • PulseGenerator

      public PulseGenerator(PulseGenerator clone)
      Clone constructor.
      Parameters:
      clone - The object to clone from.
    • PulseGenerator

      public PulseGenerator(double min, double max, double period, double initialProgress)
    • PulseGenerator

      public PulseGenerator(NumProvider min, NumProvider max, NumProvider period, double initialProgress)
    • PulseGenerator

      public PulseGenerator(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory)
      Create this generator from a ConfigurationSection, logging errors in the given settings
      Parameters:
      section - The section where this generator 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