java.lang.Object
Kyu.GuiAPI_Redone.Window.WindowImpl.TradeWindow.TradeToolbar

public class TradeToolbar extends Object
  • Constructor Details

    • TradeToolbar

      public TradeToolbar()
  • Method Details

    • setItems

      public void setItems(org.bukkit.inventory.ItemStack setReadyItem, org.bukkit.inventory.ItemStack setNotReadyItem, org.bukkit.inventory.ItemStack readyIndicator, org.bukkit.inventory.ItemStack notReadyIndicator, org.bukkit.inventory.ItemStack abortItem)
      Set the items for the toolbar
      Parameters:
      setReadyItem - For changing the status to "ready"
      setNotReadyItem - For changing the status to "not ready"
      readyIndicator - Shows when a party is "ready"
      notReadyIndicator - Shows when a party is "not ready"
      abortItem - For aborting the trade
    • setItems

      public void setItems(org.bukkit.Material setReadyItem, org.bukkit.Material setNotReadyItem, org.bukkit.Material readyIndicator, org.bukkit.Material notReadyIndicator, org.bukkit.Material abortItem)
    • setItemNames

      public void setItemNames(String readyText, String notReadyText, String abortText, String readyIndicatorText, String notReadyIndicatorText)
      Set the item names of the toolbar, will be color translated
      Parameters:
      readyText -
      notReadyText -
      abortText -
      readyIndicatorText -
      notReadyIndicatorText -
    • buildTradeToolBar

      public GuiItem[] buildTradeToolBar(TradeWindowHolder window, org.bukkit.entity.Player windowHolder, boolean ownPartyReady, boolean otherPartyReady, GUI gui)
      Parameters:
      window - The parent TradeWinderHolder
      windowHolder - The player of the TradeWindow.getPlayer()
      ownPartyReady - Whether or not said player is ready
      otherPartyReady - Whether or not the other player is ready
      gui - the GUI all of the Windows belong to
      Returns:
      an Item of Arrays with length 9 ordered by how they should be set in the inventory