Skip to content

Commit

Permalink
add info item.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrea committed Mar 2, 2024
1 parent 432e4fb commit 8b80403
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/main/java/xyz/alexcrea/cuanvil/gui/MainConfigGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private MainConfigGui() {

private void init(){
Pattern pattern = new Pattern(
"000000000",
"I00000000",
"012304560",
"Q00000000"
);
Expand Down Expand Up @@ -79,6 +79,17 @@ private void init(){
},CustomAnvil.instance);
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);

}

}

0 comments on commit 8b80403

Please sign in to comment.