Interface GeneratorManager.GeneratorProducer

Enclosing class:
GeneratorManager
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface GeneratorManager.GeneratorProducer
Represents a way to produce a given DoubleGenerator from a Configuration Section.
  • Method Summary

    Modifier and Type
    Method
    Description
    produce(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory)
    Create a generator from a ConfigurationSection, logging errors in the given settings
  • Method Details

    • produce

      DoubleGenerator produce(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory)
      Create a 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