Bukkit Inventory Slot Numbers
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InventoryView.Property
Represents various extra properties of certain inventory windows.
Field Summary
Fields Modifier and Type Field Description static int
OUTSIDE
Constructor Summary
Constructors Constructor Description InventoryView()
Method Summary
All MethodsInstance MethodsAbstract MethodsConcrete Methods 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 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()
java.lang.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
Because InventoryClickEvent occurs within a modification of the Inventory,not all Inventory related methods are safe to use.
The slot number is calculated starting at 0, counting up through the window's unique slots, and then counting through the players inventory. For all windows, the slot in the upper-left corner of the player's inventory is slot n where n is the number of unique slots, and slot number -999 is always used for clicking outside the window. While there are clearly a large number of online real money casinos to choose from, each casino has their own stable of available games. You may be Bukkit Inventory Slot Ids looking for a casino that is Bukkit Inventory Slot Ids heavier on the Bukkit Inventory Slot Ids side of slots titles, in which case you will find these real money sites Bukkit Inventory Slot Ids to your liking.
The following should never be invoked by an EventHandler forInventoryClickEvent using the HumanEntity or InventoryView associated withthis event:
To invoke one of these methods, schedule a task usingBukkitScheduler.runTask(Plugin, Runnable)
, which will run the taskon the next tick. Also be aware that this is not an exhaustive list, andother methods could potentially create issues as well.Bukkit Inventory Slot Numbers List
Assuming the EntityHuman associated with this event is an instance of aPlayer, manipulating the MaxStackSize or contents of an Inventory willrequire an Invocation of Player.updateInventory()
.
Bukkit Inventory Slot Numbers Free
Modifications to slots that are modified by the results of thisInventoryClickEvent can be overwritten. To change these slots, this eventshould be cancelled and all desired changes to the inventory applied.Alternatively, scheduling a task using BukkitScheduler.runTask(Plugin, Runnable)
, which would execute the task on the next tick, wouldwork as well.