Class VectorBinaryFunctionalGenerator

java.lang.Object
wbs.utils.util.providers.generator.vector.VectorGenerator
wbs.utils.util.providers.generator.vector.VectorBinaryFunctionalGenerator
All Implemented Interfaces:
Provider, Refreshable
Direct Known Subclasses:
VectorGeneratorCross, VectorGeneratorSub

public abstract class VectorBinaryFunctionalGenerator extends VectorGenerator
An abstract class to do many of the operations needed for a VectorGenerator when operating on exactly 2 ordered VectorProviders.
  • Constructor Details

    • VectorBinaryFunctionalGenerator

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

      public VectorBinaryFunctionalGenerator(VectorProvider a, VectorProvider b)
      Parameters:
      a - The first vector/provider to operate on.
      b - The second vector/provider to operate on.
    • VectorBinaryFunctionalGenerator

      public VectorBinaryFunctionalGenerator(org.bukkit.util.Vector a, org.bukkit.util.Vector b)
      Parameters:
      a - The first vector/provider to operate on.
      b - The second vector/provider to operate on.
    • VectorBinaryFunctionalGenerator

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