This commit is contained in:
BetaSteward 2010-11-03 04:06:47 +00:00
parent 2b1d3f6b37
commit ff33253646
37 changed files with 240 additions and 84 deletions

View file

@ -121,6 +121,18 @@ public class SpellStack extends Stack<StackObject> {
return null;
}
public Spell getSpell(UUID id) {
for (StackObject stackObject: this) {
if (stackObject.getId().equals(id)) {
if (stackObject instanceof Spell)
return (Spell)stackObject;
else
return null;
}
}
return null;
}
public SpellStack copy() {
return new SpellStack(this);
}