示例#1
0
  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;
  }
示例#2
0
  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;
  }