Package fr.maxlego08.menu.api.button
Interface ButtonOption
public interface ButtonOption
Represents a button option within a plugin's user interface.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the name of the button option.org.bukkit.plugin.PluginGets the plugin instance associated with this button option.voidloadButton(Button button, org.bukkit.configuration.file.YamlConfiguration configuration, String path, InventoryManager inventoryManager, ButtonManager buttonManager, fr.maxlego08.menu.zcore.utils.loader.Loader<fr.maxlego08.menu.MenuItemStack> itemStackLoader, File file) Loads a button configuration from a YAML file.voidonClick(Button button, org.bukkit.entity.Player player, org.bukkit.event.inventory.InventoryClickEvent event, fr.maxlego08.menu.inventory.inventories.InventoryDefault inventory, int slot, boolean isSuccess) Handles a click event on a button by a player.
-
Method Details
-
getName
String getName()Gets the name of the button option.- Returns:
- The name of this button option.
-
getPlugin
org.bukkit.plugin.Plugin getPlugin()Gets the plugin instance associated with this button option.- Returns:
- The plugin instance.
-