public class GlowMerchantInventory extends GlowInventory implements org.bukkit.inventory.MerchantInventory
Constructor and Description |
---|
GlowMerchantInventory(org.bukkit.inventory.InventoryHolder owner,
org.bukkit.inventory.Merchant merchant)
Creates the inventory for a merchant.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.inventory.Merchant |
getMerchant() |
org.bukkit.inventory.MerchantRecipe |
getSelectedRecipe() |
int |
getSelectedRecipeIndex() |
addItem, addItemStack, addViewer, all, all, all, clear, clear, consumeItem, consumeItem, contains, contains, contains, contains, contains, contains, containsAtLeast, first, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getName, getRawSlots, getSize, getSlot, getSlots, getSlotType, getStorageContents, getTitle, getType, getViewers, getViewersSet, handleShiftClick, initialize, itemPlaceAllowed, itemShiftClickAllowed, iterator, iterator, remove, remove, remove, removeItem, removeItemStack, removeViewer, setContents, setItem, setMaxStackSize, setStorageContents, setTitle, toString, tryToFillSlots
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addItem, all, all, all, clear, clear, contains, contains, contains, contains, contains, contains, containsAtLeast, first, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getName, getSize, getStorageContents, getTitle, getType, getViewers, iterator, iterator, remove, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
forEach, spliterator
public GlowMerchantInventory(org.bukkit.inventory.InventoryHolder owner, org.bukkit.inventory.Merchant merchant)
owner
- the CUSTOMER as an InventoryHolder
merchant
- the merchant as a Merchant
public org.bukkit.inventory.MerchantRecipe getSelectedRecipe()
getSelectedRecipe
in interface org.bukkit.inventory.MerchantInventory
public org.bukkit.inventory.Merchant getMerchant()
public int getSelectedRecipeIndex()
getSelectedRecipeIndex
in interface org.bukkit.inventory.MerchantInventory
Copyright © 2021. All rights reserved.