mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
stylised menu
This commit is contained in:
parent
3dc272ec97
commit
80794c41d9
2 changed files with 14 additions and 11 deletions
|
|
@ -60,8 +60,8 @@ public class EnchantCostConfigGui extends AbstractEnchantConfigGui<EnchantCostSe
|
||||||
// Edit name and lore
|
// Edit name and lore
|
||||||
itemMeta.setDisplayName(itemName.toString());
|
itemMeta.setDisplayName(itemName.toString());
|
||||||
itemMeta.setLore(Arrays.asList(
|
itemMeta.setLore(Arrays.asList(
|
||||||
"\u00A77Book Cost: " + bookCost,
|
"\u00A77Item Cost: " + itemCost,
|
||||||
"\u00A77Item Cost: " + itemCost));
|
"\u00A77Book Cost: " + bookCost));
|
||||||
|
|
||||||
item.setItemMeta(itemMeta);
|
item.setItemMeta(itemMeta);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,8 +47,8 @@ public class EnchantCostSettingsGui extends IntSettingsGui {
|
||||||
@Override
|
@Override
|
||||||
public Pattern getGuiPattern() {
|
public Pattern getGuiPattern() {
|
||||||
return new Pattern(
|
return new Pattern(
|
||||||
"abc12MVP0",
|
"abc13-v+0",
|
||||||
"D0013-v+0",
|
"D0012MVP0",
|
||||||
"B0010000S"
|
"B0010000S"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -60,17 +60,20 @@ public class EnchantCostSettingsGui extends IntSettingsGui {
|
||||||
ItemStack bookItemstack = new ItemStack(Material.BOOK);
|
ItemStack bookItemstack = new ItemStack(Material.BOOK);
|
||||||
ItemMeta bookMeta = bookItemstack.getItemMeta();
|
ItemMeta bookMeta = bookItemstack.getItemMeta();
|
||||||
|
|
||||||
bookMeta.setDisplayName("\u00A7aEnchantment by Book Cost");
|
bookMeta.setDisplayName("\u00A7aCost of an Enchantment by Book");
|
||||||
bookMeta.setLore(Collections.singletonList("\u00A77Value on the right represent cost of enchantment for every level if combined by a book"));
|
bookMeta.setLore(Arrays.asList(
|
||||||
bookItemstack.setItemMeta(bookMeta);
|
"\u00A77Cost per result item level of an sacrifice enchantment",
|
||||||
|
"\u00A77Only apply if sacrificed item \u00A7cis \u00A77a book"));bookItemstack.setItemMeta(bookMeta);
|
||||||
|
|
||||||
// sword display
|
// sword display
|
||||||
ItemStack swordItemstack = new ItemStack(Material.WOODEN_SWORD);
|
ItemStack swordItemstack = new ItemStack(Material.WOODEN_SWORD);
|
||||||
ItemMeta swordMeta = swordItemstack.getItemMeta();
|
ItemMeta swordMeta = swordItemstack.getItemMeta();
|
||||||
swordMeta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES);
|
swordMeta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES);
|
||||||
|
|
||||||
swordMeta.setDisplayName("\u00A7aEnchantment by Sword Cost");
|
swordMeta.setDisplayName("\u00A7aCost of an Enchantment by Item");
|
||||||
swordMeta.setLore(Collections.singletonList("\u00A77Value on the right represent cost of enchantment for every level if combined by an item other than a book"));
|
swordMeta.setLore(Arrays.asList(
|
||||||
|
"\u00A77Cost per result item level of an sacrifice enchantment",
|
||||||
|
"\u00A77Only apply if sacrificed item \u00A7cis not \u00A77a book"));
|
||||||
swordItemstack.setItemMeta(swordMeta);
|
swordItemstack.setItemMeta(swordMeta);
|
||||||
|
|
||||||
pane.bindItem('1', GuiGlobalItems.backgroundItem(Material.BLACK_STAINED_GLASS_PANE));
|
pane.bindItem('1', GuiGlobalItems.backgroundItem(Material.BLACK_STAINED_GLASS_PANE));
|
||||||
|
|
@ -88,8 +91,8 @@ public class EnchantCostSettingsGui extends IntSettingsGui {
|
||||||
|
|
||||||
meta.setDisplayName("\u00A7eReset to default value");
|
meta.setDisplayName("\u00A7eReset to default value");
|
||||||
meta.setLore(Arrays.asList(
|
meta.setLore(Arrays.asList(
|
||||||
"\u00A77Default book value is: " + holder.defaultBookVal,
|
"\u00A77Default item value is: " + holder.defaultVal,
|
||||||
"\u00A77Default item value is: " + holder.defaultVal));
|
"\u00A77Default book value is: " + holder.defaultBookVal));
|
||||||
item.setItemMeta(meta);
|
item.setItemMeta(meta);
|
||||||
returnToDefault = new GuiItem(item, event -> {
|
returnToDefault = new GuiItem(item, event -> {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue