|
Hopperlib
|
Public Member Functions | |
| HopperListMenu (Player player, List<? extends T > tList, int pageNumber, boolean initializeImmediately) | |
| Public Member Functions inherited from cc.mrcl.hopperlib.Menus.HopperLibMenu | |
| void | initializeMenu () |
Protected Member Functions | |
| void | populateMenu () |
| ItemStack | previousArrowModel () |
| int | previousArrowSlot () |
| ItemStack | nextArrowModel () |
| int | nextArrowSlot () |
| int | startPos () |
| int | capacity () |
| abstract void | openNewMenu (int pageNumber) |
| abstract ItemStack | getItemForObject (T t) |
| abstract MenuInteractable | getInteractionForObject (T t) |
| Protected Member Functions inherited from cc.mrcl.hopperlib.Menus.HopperLibMenu | |
| HopperLibMenu (Player player, boolean initializeImmediately) | |
| Listener | createListener () |
| abstract int | getMenuSize () |
| abstract Component | getMenuTitle () |
| void | addInteraction (ItemStack itemStack, int slot, @Nullable MenuInteractable interactable) |
| void | addInteraction (ItemStack itemStack, int slot, SimpleMenuInteractable menuInteractable) |
| void | addInteraction (ItemStack itemStack, int slot) |
| void | stopMenu (boolean closes) |
| void | stopMenu () |
| int | getSlot (int x, int y) throws IllegalArgumentException |
Protected Attributes | |
| final List< T > | tList = new ArrayList<>() |
| final int | pageNumber |
| Protected Attributes inherited from cc.mrcl.hopperlib.Menus.HopperLibMenu | |
| final Player | player |
| final Inventory | inventory |
| int | size |
| final Map< Integer, MenuInteractable > | buttons = new HashMap<>() |
|
protected |
Method to add and populate the menu with interactions on creation through the "addInteraction" methods.
Reimplemented from cc.mrcl.hopperlib.Menus.HopperLibMenu.