Bukkit Inventory Slot Numbers

Posted onby
Bukkit Inventory Slot Numbers Rating: 7,2/10 8346 votes
  1. Bukkit Inventory Slot Numbers Youtube
  2. Bukkit Inventory Slot Numbers List
  3. Bukkit Inventory Slot Numbers Free
  4. Bukkit Inventory Slot Numbers 2020
Numbers
    • Nested Class Summary

      Nested Classes
      Modifier and TypeClass and Description
      static class InventoryView.Property
      Represents various extra properties of certain inventory windows.
    • Field Summary

      Fields
      Modifier and TypeField and Description
      static intOUTSIDE
    • Constructor Summary

      Constructors
      Constructor and Description
      InventoryView()
    • Method Summary

      Methods
      Modifier and TypeMethod and Description
      voidclose()
      intconvertSlot(int rawSlot)
      Converts a raw slot ID into its local slot ID into whichever of the two inventories the slot points to.
      intcountSlots()
      Check the total number of slots in this view, combining the upper and lower inventories.
      abstract InventorygetBottomInventory()
      Get the lower inventory involved in this transaction.
      ItemStackgetCursor()
      Get the item on the cursor of one of the viewing players.
      ItemStackgetItem(int slot)
      Gets one item in this inventory view by its raw slot ID.
      abstract HumanEntitygetPlayer()
      StringgetTitle()
      Get the title of this inventory window.
      abstract InventorygetTopInventory()
      Get the upper inventory involved in this transaction.
      abstract InventoryTypegetType()
      Determine the type of inventory involved in the transaction.
      voidsetCursor(ItemStack item)
      Sets the item on the cursor of one of the viewing players.
      voidsetItem(int slot, ItemStack item)
      Sets one item in this inventory view by its raw slot ID.
      booleansetProperty(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

Bukkit Inventory Slot Numbers List

Modifier and TypeMethodDescription
voidclose()
intconvertSlot​(int rawSlot)
Converts a raw slot ID into its local slot ID into whichever of the twoinventories the slot points to.
intcountSlots()
Check the total number of slots in this view, combining the upper andlower inventories.
abstract InventorygetBottomInventory()
Get the lower inventory involved in this transaction.
ItemStackgetCursor()
Get the item on the cursor of one of the viewing players.
InventorygetInventory​(int rawSlot)
Gets the inventory corresponding to the given raw slot ID.
ItemStackgetItem​(int slot)
Gets one item in this inventory view by its raw slot ID.
abstract HumanEntitygetPlayer()
InventoryType.SlotTypegetSlotType​(int slot)
Determine the type of the slot by its raw slot ID.
abstract StringgetTitle()
abstract InventorygetTopInventory()
Get the upper inventory involved in this transaction.
abstract InventoryTypegetType()
Determine the type of inventory involved in the transaction.
voidsetCursor​(ItemStack item)
Sets the item on the cursor of one of the viewing players.
voidsetItem​(int slot,ItemStack item)
Sets one item in this inventory view by its raw slot ID.
booleansetProperty​(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.