Package ch.njol.skript.util

Examples of ch.njol.skript.util.EnchantmentType


      if (t2.numTypes() == 0)
        continue;
      final Map<Enchantment, Integer> enchantments = new HashMap<Enchantment, Integer>();
      final String[] enchs = lc.substring(c + of.length(), lc.length()).split("\\s*(,|" + Pattern.quote(Language.get("and")) + ")\\s*");
      for (final String ench : enchs) {
        final EnchantmentType e = EnchantmentType.parse("" + ench);
        if (e == null)
          continue outer;
        enchantments.put(e.getType(), e.getLevel());
      }
      t2.addEnchantments(enchantments);
      return t2;
    }
   
View Full Code Here

TOP

Related Classes of ch.njol.skript.util.EnchantmentType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.