Exemplo n.º 1
0
 private void despawnNPCs() {
   Iterator<NPC> itr = npcRegistry.iterator();
   while (itr.hasNext()) {
     NPC npc = itr.next();
     npc.despawn();
     for (Trait t : npc.getTraits()) t.onRemove();
     itr.remove();
   }
 }
Exemplo n.º 2
0
 @Override
 public boolean isInternalTrait(Trait trait) {
   return INTERNAL_TRAITS.contains(trait.getName());
 }