public class GlowEnchantingInventory extends GlowInventory implements org.bukkit.inventory.EnchantingInventory
| Constructor and Description |
|---|
GlowEnchantingInventory(org.bukkit.Location location,
GlowPlayer player)
Creates an instance for an enchanting table.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBookshelfCount()
Returns the number of bookshelf blocks that are raising this enchanting table's level.
|
org.bukkit.inventory.ItemStack |
getItem() |
org.bukkit.Location |
getLocation() |
int |
getRawSlots()
Gets the number of slots in this inventory according to the protocol.
|
org.bukkit.inventory.ItemStack |
getSecondary() |
void |
onPlayerEnchant(int clicked) |
void |
setItem(int index,
org.bukkit.inventory.ItemStack item) |
void |
setItem(org.bukkit.inventory.ItemStack item) |
void |
setSecondary(org.bukkit.inventory.ItemStack itemStack) |
addItem, addItemStack, addViewer, all, all, all, clear, clear, consumeItem, consumeItem, contains, contains, contains, contains, contains, contains, containsAtLeast, first, first, first, firstEmpty, getContents, getHolder, getItem, getMaxStackSize, getName, getSize, getSlot, getSlots, getSlotType, getStorageContents, getTitle, getType, getViewers, getViewersSet, handleShiftClick, initialize, itemPlaceAllowed, itemShiftClickAllowed, iterator, iterator, remove, remove, remove, removeItem, removeItemStack, removeViewer, setContents, setMaxStackSize, setStorageContents, setTitle, toString, tryToFillSlotsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddItem, all, all, all, clear, clear, contains, contains, contains, contains, contains, contains, containsAtLeast, first, first, first, firstEmpty, getContents, getHolder, getItem, getMaxStackSize, getName, getSize, getStorageContents, getTitle, getType, getViewers, iterator, iterator, remove, remove, remove, removeItem, setContents, setMaxStackSize, setStorageContentsforEach, spliteratorpublic GlowEnchantingInventory(org.bukkit.Location location,
GlowPlayer player)
location - the enchanting table's locationplayer - the enchanting playerpublic void onPlayerEnchant(int clicked)
public int getBookshelfCount()
public void setItem(org.bukkit.inventory.ItemStack item)
setItem in interface org.bukkit.inventory.EnchantingInventorypublic void setItem(int index,
org.bukkit.inventory.ItemStack item)
setItem in interface org.bukkit.inventory.InventorysetItem in class GlowInventorypublic int getRawSlots()
GlowInventorySome inventories have 0 slots in the protocol, despite having slots.
getRawSlots in class GlowInventorypublic org.bukkit.inventory.ItemStack getItem()
getItem in interface org.bukkit.inventory.EnchantingInventorypublic org.bukkit.inventory.ItemStack getSecondary()
getSecondary in interface org.bukkit.inventory.EnchantingInventorypublic void setSecondary(org.bukkit.inventory.ItemStack itemStack)
setSecondary in interface org.bukkit.inventory.EnchantingInventorypublic org.bukkit.Location getLocation()
getLocation in interface org.bukkit.inventory.InventorygetLocation in class GlowInventoryCopyright © 2021. All rights reserved.