Exemple #1
0
 // Sets the spell that's cast when it is right clicked.
 public void setQuickSpell(String quickSpell, SpellActions action) {
   // Checks to see if it exists
   for (Spell spell : GeneralData.spells) {
     if (spell.getName().equalsIgnoreCase(quickSpell)) {
       String[] splitted = this.quickSpell.split(",");
       splitted[action.getIndex()] = quickSpell;
       this.quickSpell = Utils.concatStringArray(splitted, ",");
     }
   }
 }
Exemple #2
0
 public String getQuickSpell(SpellActions action) {
   return quickSpell.split(",")[action.getIndex()];
 }