Class VectorFunctionalGenerator

java.lang.Object
wbs.utils.util.providers.generator.vector.VectorGenerator
wbs.utils.util.providers.generator.vector.VectorFunctionalGenerator
All Implemented Interfaces:
Provider, Refreshable
Direct Known Subclasses:
VectorGeneratorAdd, VectorGeneratorMul

public abstract class VectorFunctionalGenerator extends VectorGenerator
A type of VectorGenerator that takes some number of VectorProviders and operates on them to determine the value
  • Field Details

  • Constructor Details

    • VectorFunctionalGenerator

      public VectorFunctionalGenerator()
    • VectorFunctionalGenerator

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

      public VectorFunctionalGenerator(VectorProvider... args)
    • VectorFunctionalGenerator

      public VectorFunctionalGenerator(List<org.bukkit.util.Vector> args)
    • VectorFunctionalGenerator

      public VectorFunctionalGenerator(org.bukkit.util.Vector... args)
    • VectorFunctionalGenerator

      public VectorFunctionalGenerator(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory)
      Create this type of generator from a given config
      Parameters:
      section - The section to read from
      settings - The settings to log errors against
      directory - The path taken through the section to reach this provider, for logging purposes
    • VectorFunctionalGenerator

      public VectorFunctionalGenerator(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory, int minArgs)
      Create this type of generator from a given config
      Parameters:
      section - The section to read from
      settings - The settings to log errors against
      directory - The path taken through the section to reach this provider, for logging purposes
      minArgs - The minimum number of arguments needed for this generator to work
    • VectorFunctionalGenerator

      public VectorFunctionalGenerator(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory, int minArgs, int maxArgs)
      Create this type of generator from a given config
      Parameters:
      section - The section to read from
      settings - The settings to log errors against
      directory - The path taken through the section to reach this provider, for logging purposes
      minArgs - The minimum number of arguments needed for this generator to work
      maxArgs - The maximum number of arguments this generator is defined on
  • Method Details

    • refreshInternal

      public final void refreshInternal()
      Overrides:
      refreshInternal in class VectorGenerator
    • writeToConfig

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