Class AbsGenerator

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

public class AbsGenerator extends DoubleGenerator
A simple generator that takes a NumProvider and returns its absolute value
  • Constructor Details

    • AbsGenerator

      public AbsGenerator(double value)
      Parameters:
      value - A static value to be used to create an (also) static NumProvider, which this generator operates on.
    • AbsGenerator

      public AbsGenerator(NumProvider value)
      Parameters:
      value - A NumProvider to operate on.
    • AbsGenerator

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