Class GlowMerchantInventory

java.lang.Object
net.glowstone.inventory.GlowInventory
net.glowstone.inventory.GlowMerchantInventory
All Implemented Interfaces:
Iterable<org.bukkit.inventory.ItemStack>, org.bukkit.inventory.Inventory, org.bukkit.inventory.MerchantInventory

public class GlowMerchantInventory extends GlowInventory implements org.bukkit.inventory.MerchantInventory
  • Constructor Details

    • GlowMerchantInventory

      public GlowMerchantInventory(org.bukkit.inventory.InventoryHolder owner, org.bukkit.inventory.Merchant merchant)
      Creates the inventory for a merchant.
      Parameters:
      owner - the CUSTOMER as an InventoryHolder
      merchant - the merchant as a Merchant
  • Method Details

    • getSelectedRecipe

      public org.bukkit.inventory.MerchantRecipe getSelectedRecipe()
      Specified by:
      getSelectedRecipe in interface org.bukkit.inventory.MerchantInventory
    • getMerchant

      public org.bukkit.inventory.Merchant getMerchant()
      Specified by:
      getMerchant in interface org.bukkit.inventory.MerchantInventory
    • getSelectedRecipeIndex

      public int getSelectedRecipeIndex()
      Specified by:
      getSelectedRecipeIndex in interface org.bukkit.inventory.MerchantInventory