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, 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, getMaxStackSize, getName, getSize, getStorageContents, getTitle, getType, getViewers, iterator, iterator, remove, remove, remove, removeItem, setContents, setMaxStackSize, setStorageContents
forEach, spliterator
public 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.EnchantingInventory
public void setItem(int index, org.bukkit.inventory.ItemStack item)
setItem
in interface org.bukkit.inventory.Inventory
setItem
in class GlowInventory
public int getRawSlots()
GlowInventory
Some inventories have 0 slots in the protocol, despite having slots.
getRawSlots
in class GlowInventory
public org.bukkit.inventory.ItemStack getItem()
getItem
in interface org.bukkit.inventory.EnchantingInventory
public org.bukkit.inventory.ItemStack getSecondary()
getSecondary
in interface org.bukkit.inventory.EnchantingInventory
public void setSecondary(org.bukkit.inventory.ItemStack itemStack)
setSecondary
in interface org.bukkit.inventory.EnchantingInventory
public org.bukkit.Location getLocation()
getLocation
in interface org.bukkit.inventory.Inventory
getLocation
in class GlowInventory
Copyright © 2021. All rights reserved.