java.lang.Object
com.bencodez.advancedcore.api.inventory.BInventoryButton
com.bencodez.advancedcore.api.inventory.editgui.EditGUIButton

public class EditGUIButton extends BInventoryButton
Button for editing GUI values.
  • Constructor Details

    • EditGUIButton

      public EditGUIButton(EditGUIValue editer)
      Constructor for EditGUIButton.
      Parameters:
      editer - the GUI value editor
    • EditGUIButton

      public EditGUIButton(ItemBuilder item, EditGUIValue editer)
      Constructor for EditGUIButton with custom item.
      Parameters:
      item - the item builder
      editer - the GUI value editor
  • Method Details

    • addLore

      public EditGUIButton addLore(String lore)
      Adds a lore line to the button.
      Parameters:
      lore - the lore line
      Returns:
      this instance
    • addOptions

      public EditGUIButton addOptions(String... str)
      Adds options to the button.
      Parameters:
      str - the options
      Returns:
      this instance
    • getItem

      public org.bukkit.inventory.ItemStack getItem(org.bukkit.entity.Player player, HashMap<String,String> placeholders)
      Description copied from class: BInventoryButton
      Gets the item with placeholders.
      Overrides:
      getItem in class BInventoryButton
      Parameters:
      player - the player
      placeholders - the placeholders
      Returns:
      the item
    • onClick

      public void onClick(BInventory.ClickEvent clickEvent)
      Description copied from class: BInventoryButton
      On click.
      Specified by:
      onClick in class BInventoryButton
      Parameters:
      clickEvent - the click event
    • setName

      public EditGUIButton setName(String name)
      Sets the name of the button.
      Parameters:
      name - the name
      Returns:
      this instance