mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Add 1.9 Enchantments (FROST_WALKER, MENDING)
This commit is contained in:
parent
a5686a17e2
commit
d17bd144a2
1 changed files with 17 additions and 4 deletions
|
@ -149,11 +149,24 @@ public class Enchantments {
|
||||||
ENCHANTMENTS.put("lure", Enchantment.LURE);
|
ENCHANTMENTS.put("lure", Enchantment.LURE);
|
||||||
ALIASENCHANTMENTS.put("rodlure", Enchantment.LURE);
|
ALIASENCHANTMENTS.put("rodlure", Enchantment.LURE);
|
||||||
|
|
||||||
|
// 1.8
|
||||||
try {
|
try {
|
||||||
ENCHANTMENTS.put("depthstrider", Enchantment.getByName("DEPTH_STRIDER"));
|
Enchantment depthStrider = Enchantment.getByName("DEPTH_STRIDER");
|
||||||
ALIASENCHANTMENTS.put("depth", Enchantment.getByName("DEPTH_STRIDER"));
|
ENCHANTMENTS.put("depthstrider", depthStrider);
|
||||||
ALIASENCHANTMENTS.put("strider", Enchantment.getByName("DEPTH_STRIDER"));
|
ALIASENCHANTMENTS.put("depth", depthStrider);
|
||||||
} catch(IllegalArgumentException ignored) {}
|
ALIASENCHANTMENTS.put("strider", depthStrider);
|
||||||
|
} catch (IllegalArgumentException ignored) {}
|
||||||
|
|
||||||
|
// 1.9
|
||||||
|
try {
|
||||||
|
Enchantment frostWalker = Enchantment.getByName("FROST_WALKER");
|
||||||
|
ENCHANTMENTS.put("frostwalker", frostWalker);
|
||||||
|
ALIASENCHANTMENTS.put("frost", frostWalker);
|
||||||
|
ALIASENCHANTMENTS.put("walker", frostWalker);
|
||||||
|
|
||||||
|
Enchantment mending = Enchantment.getByName("MENDING");
|
||||||
|
ENCHANTMENTS.put("mending", mending);
|
||||||
|
} catch (IllegalArgumentException ignored) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Enchantment getByName(String name) {
|
public static Enchantment getByName(String name) {
|
||||||
|
|
Loading…
Reference in a new issue