-
Notifications
You must be signed in to change notification settings - Fork 3
Menu
Read: Creating an Empty Menu
Menu(Inventory inv)
inv: The Inventory you're using as a menu.
Return type: Inventory
Modifiers: public
Returns the Inventory assigned to the Menu object.
Return type: void
Modifiers: public
inv: The Inventory to replace the exiting inventory with.
Replaces the existing Inventory associated with the Menu object.
getItemAt(Coordinates coordinates);
Return type: MenuObject
Modifiers: public
coordinates: The coordinates on the Menu to get the MenuObject from.
Return type: void
Modifiers: public
coordinates: Where to place the MenuObject.
menuObject: The MenuObject to place at the coordinates.
Places (or replaces) a MenuObject at a location.
Return type: void
Modifiers: public
coordinates: Where to remove the MenuObject from.
Removes all MenuObject data from a specific location (unless no MenuObject is present).
Return type: void
Modifiers: public
menuObject: The MenuObject(s) to place in the Menu. Can be several, seperated by commas.
Places MenuObject(s) at the first available spot in the Menu.
Return type: void
Modifiers: @Deprecated, public
Closes and deregisters the Menu and deletes all data from it.
Return type: void
Modifiers: public
p: The Player to close the Inventory for.
Closes the Menu's Inventory for a specific Player. If nobody is viewing the Inventory, it is deregistered and deleted.
Return type: HashMap<Integer, MenuObject>
Modifiers: public
Gets a HashMap with each slot and its respective MenuObject.