Class DivisionGenerator

All Implemented Interfaces:
Provider, Refreshable

public class DivisionGenerator extends BinaryFunctionalGenerator
A functional generator that takes exactly two NumProviders and divides the first by the second
  • Constructor Details

    • DivisionGenerator

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

      public DivisionGenerator(NumProvider a, NumProvider b)
      Parameters:
      a - The first number/provider to operate on.
      b - The second number/provider to operate on.
    • DivisionGenerator

      public DivisionGenerator(double a, double b)
      Parameters:
      a - The first number/provider to operate on.
      b - The second number/provider to operate on.
    • DivisionGenerator

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