Bukkit Inventory Slot Numbers
- Bukkit Inventory Slot Numbers Youtube
- Bukkit Inventory Slot Numbers List
- Bukkit Inventory Slot Numbers Free
- Bukkit Inventory Slot Numbers 2020
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
InventoryView.Property
Represents various extra properties of certain inventory windows.
Field Summary
Fields Modifier and Type Field and Description static int
OUTSIDE
Constructor Summary
Constructors Constructor and Description InventoryView()
Method Summary
Methods Modifier and Type Method and Description void
close()
int
convertSlot(int rawSlot)
Converts a raw slot ID into its local slot ID into whichever of the two inventories the slot points to.int
countSlots()
Check the total number of slots in this view, combining the upper and lower inventories.abstract Inventory
getBottomInventory()
Get the lower inventory involved in this transaction.ItemStack
getCursor()
Get the item on the cursor of one of the viewing players.ItemStack
getItem(int slot)
Gets one item in this inventory view by its raw slot ID.abstract HumanEntity
getPlayer()
String
getTitle()
Get the title of this inventory window.abstract Inventory
getTopInventory()
Get the upper inventory involved in this transaction.abstract InventoryType
getType()
Determine the type of inventory involved in the transaction.void
setCursor(ItemStack item)
Sets the item on the cursor of one of the viewing players.void
setItem(int slot, ItemStack item)
Sets one item in this inventory view by its raw slot ID.boolean
setProperty(InventoryView.Property prop, int value)
Sets an extra property of this inventory if supported by that inventory, for example the state of a progress bar.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Bukkit Inventory Slot Numbers Youtube
Bukkit Inventory Slot Numbers List
Modifier and Type | Method | Description |
---|---|---|
void | close() | |
int | convertSlot(int rawSlot) | Converts a raw slot ID into its local slot ID into whichever of the twoinventories the slot points to. |
int | countSlots() | Check the total number of slots in this view, combining the upper andlower inventories. |
abstract Inventory | getBottomInventory() | Get the lower inventory involved in this transaction. |
ItemStack | getCursor() | Get the item on the cursor of one of the viewing players. |
Inventory | getInventory(int rawSlot) | Gets the inventory corresponding to the given raw slot ID. |
ItemStack | getItem(int slot) | Gets one item in this inventory view by its raw slot ID. |
abstract HumanEntity | getPlayer() | |
InventoryType.SlotType | getSlotType(int slot) | Determine the type of the slot by its raw slot ID. |
abstract String | getTitle() | |
abstract Inventory | getTopInventory() | Get the upper inventory involved in this transaction. |
abstract InventoryType | getType() | Determine the type of inventory involved in the transaction. |
void | setCursor(ItemStack item) | Sets the item on the cursor of one of the viewing players. |
void | setItem(int slot,ItemStack item) | Sets one item in this inventory view by its raw slot ID. |
boolean | setProperty(InventoryView.Property prop,int value) | Sets an extra property of this inventory if supported by thatinventory, for example the state of a progress bar. |
Bukkit Inventory Slot Numbers Free
It follows the same path in the inventory like you would read a book. Indexes 36 through 39 refer to the armor slots. Though you can set armor with this method using these indexes, you are encouraged to use the provided methods for those slots. Index 40 refers to the off hand (shield) item slot. Index of an an inventory slot. Other types of slots may or may not have indices. Note that comparing slots with numbers is also possible; if index of slot is same as the number, comparisonsucceeds. This expression is mainly for the cases where you must for some reason save the slot numbers.
Bukkit Inventory Slot Numbers 2020
InventoryClickEvent#getSlot or getRawSlot if you're interested in using the slot number to check if the clicked inventory is the top or the bottom. #3 Jikoo, Sep 13, 2015 + Quote Reply.