Esempio n. 1
0
 @Override
 public void removeEntity(Entity entity) {
   this.entities.remove(entity.getId());
   if (!(entity instanceof Player) && this.isInit) {
     this.hasChanged = true;
   }
 }
Esempio n. 2
0
 @Override
 public void addEntity(Entity entity) {
   this.entities.put(entity.getId(), entity);
   if (!(entity instanceof Player) && this.isInit) {
     this.hasChanged = true;
   }
 }