Class RandomGenerator

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

public class RandomGenerator extends DoubleGenerator
A generator that returns a random value between two NumProviders
  • Constructor Details

    • RandomGenerator

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

      public RandomGenerator(double min, double max)
    • RandomGenerator

      public RandomGenerator(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