mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Changed Chimaera Wing's recipe result to use the ingredient Material
This commit is contained in:
parent
2365c253dd
commit
c16e5231f4
@ -8,6 +8,7 @@ Key:
|
|||||||
- Removal
|
- Removal
|
||||||
|
|
||||||
Version 1.4.06-dev
|
Version 1.4.06-dev
|
||||||
|
! Changed Chimaera Wing's recipe result to use the ingredient Material
|
||||||
|
|
||||||
Version 1.4.05
|
Version 1.4.05
|
||||||
+ Added option to allow refreshing of chunks after block-breaking abilities. (Disabled by default)
|
+ Added option to allow refreshing of chunks after block-breaking abilities. (Disabled by default)
|
||||||
|
@ -119,13 +119,17 @@ public final class ChimaeraWing {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static ItemStack getChimaeraWing(int amount) {
|
public static ItemStack getChimaeraWing(int amount) {
|
||||||
ItemStack itemStack = new ItemStack(Material.FEATHER, amount);
|
Material ingredient = Material.getMaterial(Config.getInstance().getChimaeraItemId());
|
||||||
|
ItemStack itemStack = new ItemStack(ingredient, amount);
|
||||||
|
|
||||||
ItemMeta itemMeta = itemStack.getItemMeta();
|
ItemMeta itemMeta = itemStack.getItemMeta();
|
||||||
itemMeta.setDisplayName(ChatColor.GOLD + "Chimaera Wing"); //TODO Locale!
|
itemMeta.setDisplayName(ChatColor.GOLD + "Chimaera Wing"); //TODO Locale!
|
||||||
|
|
||||||
List<String> itemLore = new ArrayList<String>();
|
List<String> itemLore = new ArrayList<String>();
|
||||||
itemLore.add("mcMMO Item");
|
itemLore.add("mcMMO Item");
|
||||||
itemLore.add(ChatColor.GRAY + "Teleports you to your bed."); //TODO Locale!
|
itemLore.add(ChatColor.GRAY + "Teleports you to your bed."); //TODO Locale!
|
||||||
itemMeta.setLore(itemLore);
|
itemMeta.setLore(itemLore);
|
||||||
|
|
||||||
itemStack.setItemMeta(itemMeta);
|
itemStack.setItemMeta(itemMeta);
|
||||||
return itemStack;
|
return itemStack;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user