Skip to content

Instantly share code, notes, and snippets.

View eltrueno's full-sized avatar
💻
Fullstack Developer

Raúl Jiménez eltrueno

💻
Fullstack Developer
View GitHub Profile
@eltrueno
eltrueno / Example.java
Last active February 23, 2024 15:37
Scrollable Menu by el_trueno
private static ScrollableMenuModel getModel(){
ItemStack air = new ItemStack(Material.AIR);
ItemStack nextpage = nolore(Material.ARROW, 1, 0, "§ePágina siguiente");
ItemStack previouspage = nolore(Material.ARROW, 1, 0, "§ePágina anterior");
ItemStack shop = nolore(Material.EMERALD, 1, 0, "§aVolver a la tienda");
ScrollableMenuModel menumodel = new ScrollableMenuModel(54, air,
new ScrollableMenuSlot(ScrollableMenuSlot.SlotType.DECORATION, null, 0)
, new ScrollableMenuSlot(ScrollableMenuSlot.SlotType.NEXT_PAGE, nextpage, 41)
, new ScrollableMenuSlot(ScrollableMenuSlot.SlotType.PREVIOUS_PAGE, previouspage, 39)
, new ScrollableMenuSlot(ScrollableMenuSlot.SlotType.ITEM, null, 10,11,12,13,14,15,16,19,20,21,22,23,24,25,28,29,30,31,32,33,34)