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(); } }
@Override public boolean isInternalTrait(Trait trait) { return INTERNAL_TRAITS.contains(trait.getName()); }