Class BottomFillProvider
java.lang.Object
com.ryandw11.structure.bottomfill.BottomFillProvider
Provides the plugin with an implementation of the BottomFill feature.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddImplementation(BottomFillImpl bottomFill)Add a BottomFill implementation to the provider.static voidaddProvider(BottomFillImpl bottomFill)Deprecated.static BottomFillImplprovide()Get a bottom fill implementation.static BottomFillImplprovide(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.