Class ModuloGenerator

All Implemented Interfaces:
Provider, Refreshable

public class ModuloGenerator extends BinaryFunctionalGenerator
A functional generator that takes exactly two NumProviders and returns the first value under the modulo of the second
  • Constructor Details

    • ModuloGenerator

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

      public ModuloGenerator(NumProvider a, NumProvider b)
    • ModuloGenerator

      public ModuloGenerator(double a, double b)
    • ModuloGenerator

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