Class ClampGenerator

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

public class ClampGenerator extends DoubleGenerator
A generator that takes a NumProvider and clamps it between two other NumProviders
  • Constructor Details

    • ClampGenerator

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

      public ClampGenerator(double min, double max, double value)
    • ClampGenerator

      public ClampGenerator(NumProvider min, NumProvider max, NumProvider value)
    • ClampGenerator

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