add info item.

This commit is contained in:
alexcrea 2024-03-02 20:25:07 +01:00
parent 9b7f628f4f
commit e2eee5c3ad

View file

@ -28,7 +28,7 @@ public class MainConfigGui extends ChestGui {
private void init(){ private void init(){
Pattern pattern = new Pattern( Pattern pattern = new Pattern(
"000000000", "I00000000",
"012304560", "012304560",
"Q00000000" "Q00000000"
); );
@ -79,6 +79,17 @@ public class MainConfigGui extends ChestGui {
},CustomAnvil.instance); },CustomAnvil.instance);
pane.bindItem('Q', quitItem); pane.bindItem('Q', quitItem);
// create & bind "info" item
ItemStack infoItemstack = new ItemStack(Material.PAPER);
ItemMeta infoMeta = infoItemstack.getItemMeta();
infoMeta.setDisplayName("\u00A7eThis is a alpha version of the gui !");
infoMeta.setLore(Collections.singletonList("\u00A77If you have feedback or idea you can send them to the dev !"));
infoItemstack.setItemMeta(infoMeta);
GuiItem infoItem = new GuiItem(infoItemstack, GuiGlobalActions.stayInPlace, CustomAnvil.instance);
pane.bindItem('I', infoItem);
} }
} }