mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
add info item.
This commit is contained in:
parent
9b7f628f4f
commit
e2eee5c3ad
1 changed files with 12 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue