Package org.napile.primitive.sets

Examples of org.napile.primitive.sets.IntSet.toArray()


  private void openDoor(int npcId)
  {
    IntSet set = doors.get(npcId);
    if (set != null)
    {
      for (int i : set.toArray())
      {
        DoorInstance doorToOpen = ReflectionUtils.getDoor(i);
        doorToOpen.openMe();
        ThreadPoolManager.getInstance().schedule(new DoorClose(doorToOpen), 120 * 1000L);
      }
 
View Full Code Here


    final Collection<Castle> castles = ResidenceHolder.getInstance().getResidenceList(Castle.class);
    for (Castle c : castles)
    {
      set.addAll(c.getMerchantGuards().keySet());
    }
    return set.toArray();
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.