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