Class BottomFillProvider
java.lang.Object
com.ryandw11.structure.bottomfill.BottomFillProvider
Provides the plugin with an implementation of the BottomFill feature.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addImplementation(BottomFillImpl bottomFill)
Add a BottomFill implementation to the provider.static void
addProvider(BottomFillImpl bottomFill)
Deprecated.static BottomFillImpl
provide()
Get a bottom fill implementation.static BottomFillImpl
provide(int impl)
Get a bottom fill implementation
-
Constructor Details
-
BottomFillProvider
public BottomFillProvider()
-
-
Method Details
-
addProvider
Deprecated.UseaddImplementation(BottomFillImpl)
instead.Add a BottomFill implementation to the provider.- Parameters:
bottomFill
- The bottom fill implementation.
-
addImplementation
Add a BottomFill implementation to the provider.- Parameters:
bottomFill
- The bottom fill implementation.
-
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
Get a bottom fill implementation- Parameters:
impl
- The implementation number.- Returns:
- The implementation if it exists.
-
addImplementation(BottomFillImpl)
instead.