Package fr.maxlego08.menu.api.pattern
Interface Pattern
public interface Pattern
The Pattern interface represents a list of buttons that can be consistently used in multiple inventories.
For example, patterns can be used for decoration, allowing you to reuse the same set of buttons without duplicating code.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the collection of buttons included in the pattern.intGets the size of the inventory associated with the pattern.getName()Retrieves the name of the pattern, which can be used to identify it in inventories.
-
Method Details
-
getName
String getName()Retrieves the name of the pattern, which can be used to identify it in inventories.- Returns:
- The name of the pattern.
-
getInventorySize
int getInventorySize()Gets the size of the inventory associated with the pattern.- Returns:
- The size of the inventory.
-
getButtons
Collection<Button> getButtons()Returns the collection of buttons included in the pattern.- Returns:
- The buttons in the pattern.
-
enableMultiPage
boolean enableMultiPage()
-