Class BinaryFunctionalGenerator

java.lang.Object
wbs.utils.util.providers.generator.num.DoubleGenerator
wbs.utils.util.providers.generator.num.BinaryFunctionalGenerator
All Implemented Interfaces:
Provider, Refreshable
Direct Known Subclasses:
DivisionGenerator, ModuloGenerator, SubtractionGenerator

public abstract class BinaryFunctionalGenerator extends DoubleGenerator
  • Field Details

  • Constructor Details

    • BinaryFunctionalGenerator

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

      public BinaryFunctionalGenerator(NumProvider a, NumProvider b)
    • BinaryFunctionalGenerator

      public BinaryFunctionalGenerator(double a, double b)
    • BinaryFunctionalGenerator

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

    • writeToConfig

      public void writeToConfig(org.bukkit.configuration.ConfigurationSection section, String path)
      Description copied from interface: Provider
      Save this provider in a config (that can often by read by its constructor)
      Specified by:
      writeToConfig in interface Provider
      Specified by:
      writeToConfig in class DoubleGenerator
      Parameters:
      section - The section to write to
      path - The field/path inside the given section