Class BottomFillProvider

java.lang.Object
com.ryandw11.structure.bottomfill.BottomFillProvider

public final class BottomFillProvider extends Object
Provides the plugin with an implementation of the BottomFill feature.
  • Constructor Details

    • BottomFillProvider

      public BottomFillProvider()
  • Method Details

    • addProvider

      @Deprecated public static void addProvider(BottomFillImpl bottomFill)
      Deprecated.
      Add a BottomFill implementation to the provider.
      Parameters:
      bottomFill - The bottom fill implementation.
    • addImplementation

      public static void addImplementation(BottomFillImpl bottomFill)
      Add a BottomFill implementation to the provider.
      Parameters:
      bottomFill - The bottom fill implementation.
    • provide

      public static BottomFillImpl provide()
      Get a bottom fill implementation.

      Note: Currently only the first implementation registered will be provided. This may change in the future.

      Returns:
      The first implementation specified. (Or the default if no custom ones were added).
    • provide

      public static BottomFillImpl provide(int impl)
      Get a bottom fill implementation
      Parameters:
      impl - The implementation number.
      Returns:
      The implementation if it exists.