public DamageOverTime getDotByName(String dotName) { List<DamageOverTime> dots = new ArrayList<DamageOverTime>(dotList.get()); for (DamageOverTime dot : dots) { if (dot.getCommandName().equalsIgnoreCase(dotName)) return dot; } return null; }
public DamageOverTime getDotByBuff(Buff buff) { List<DamageOverTime> dots = new ArrayList<DamageOverTime>(dotList.get()); for (DamageOverTime dot : dots) { if (dot.getBuff() == buff) return dot; } return null; }