Interface ItemButton

All Superinterfaces:
fr.maxlego08.menu.api.button.Button, EconomyAction, fr.maxlego08.menu.api.button.PerformButton, fr.maxlego08.menu.api.button.PermissibleButton, fr.maxlego08.menu.api.button.PlaceholderButton, fr.maxlego08.menu.api.button.SlotButton
All Known Implementing Classes:
ZItemButton

public interface ItemButton extends EconomyAction
  • Field Details

  • Method Details

    • getSellPrice

      double getSellPrice()
    • getBuyPrice

      double getBuyPrice()
    • getSellPrice

      double getSellPrice(int amount)
    • getBuyPrice

      double getBuyPrice(int amount)
    • getSellPrice

      double getSellPrice(org.bukkit.entity.Player player, int amount)
    • getBuyPrice

      double getBuyPrice(org.bukkit.entity.Player player, int amount)
    • getUnitSellPrice

      double getUnitSellPrice()
    • getUnitBuyPrice

      double getUnitBuyPrice()
    • canSell

      boolean canSell()
    • canBuy

      boolean canBuy()
    • getMaxStack

      int getMaxStack()
    • getEconomy

      ShopEconomy getEconomy()
    • getLore

      List<String> getLore()
    • getSellPriceFormat

      String getSellPriceFormat(org.bukkit.entity.Player player, int amount)
      Allows to recover the sale price with the modifiers
      Parameters:
      player - the player
      amount - current amount
      Returns:
      price format
    • getBuyPriceFormat

      String getBuyPriceFormat(org.bukkit.entity.Player player, int amount)
      Allows to recover the purchase price with the modifiers
      Parameters:
      player - the player
      amount - current amount
      Returns:
      price format
    • getSellPriceFormat

      String getSellPriceFormat(int amount)
      Allows to recover the sale price
      Parameters:
      amount - current amount
      Returns:
      price format
    • getBuyPriceFormat

      String getBuyPriceFormat(int amount)
      Allows to recover the purchase price
      Parameters:
      amount - current amount
      Returns:
      price format
    • getBuyCommands

      List<String> getBuyCommands()
      Returns:
      buy commands
    • getSellCommands

      List<String> getSellCommands()
      Returns:
      sell commands
    • giveItem

      boolean giveItem()
      Returns:
      give item
    • getServerBuyLimit

      Optional<Limit> getServerBuyLimit()
    • getServerSellLimit

      Optional<Limit> getServerSellLimit()
    • getPlayerBuyLimit

      Optional<Limit> getPlayerBuyLimit()
    • getPlayerSellLimit

      Optional<Limit> getPlayerSellLimit()
    • enableLog

      boolean enableLog()
    • log

      void log(int amount, String itemName, String price, String playerName, UUID uuid, HistoryType type)
    • affectByPriceModifier

      boolean affectByPriceModifier()
    • getMob

      String getMob()