Skip to content

Filling & Decoration

FlameyosFlow edited this page Sep 16, 2023 · 2 revisions

Filling (Menu and non-paginated Menus)

Filling is a piece of cake.

It's basically the same as what you'd write in triumph-gui our base if not better:

exampleMenu.getFiller().fillBorders(Material.GRAY_STAINED_GLASS_PANE);

// legacy
exampleMenu.getFiller().fillBorders(new ItemStack(Material.STAINED_GLASS_PANE, 1, (short) 7));

// MenuItem
ItemStack item = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short) 7);
exampleMenu.getFiller().fillBorders(ItemBuilder.of(item).setName("&1 ").buildItem()); // added the setName just incase :wink: 
Clone this wiki locally