@Override
	public void handleEvent(Event event) {
		List<Entity> entities = entityManager.getEntitiesContainingComponent(VisionComponent.class);
		if (entities == null)
			return;
		EntityCreatedEvent entityCreatedEvent = (EntityCreatedEvent) event;
		for (Entity entity : entities) {
			VisionComponent visionComponent = (VisionComponent) entityManager.getComponentInEntity(entity, VisionComponent.class);
			visionComponent.createEntity(entityCreatedEvent.getEntity());
			System.out.println("EntityEvent: " + entityCreatedEvent.getEntity());
		}
	}
@Override
	public void handleEvent(Event event) {
		List<Entity> entities = entityManager.getEntitiesContainingComponent(VisionComponent.class);
		if (entities == null)
			return;
		EntityCreatedEvent entityCreatedEvent = (EntityCreatedEvent) event;
		for (Entity entity : entities) {
			VisionComponent visionComponent = (VisionComponent) entityManager.getComponentInEntity(entity, VisionComponent.class);
			visionComponent.createEntity(entityCreatedEvent.getEntity());
			System.out.println("EntityEvent: " + entityCreatedEvent.getEntity());
		}
	}
@override public void handleevent(event event) { list<entity> entities = entitymanager.getentitiescontainingcomponent(visioncomponent.class); if (entities == null) return; entitycreatedevent entitycreatedevent = (entitycreatedevent) event; for (entity entity : entities) { visioncomponent visioncomponent = (visioncomponent) entitymanager.getcomponentinentity(entity, visioncomponent.class); visioncomponent.createentity(entitycreatedevent.getentity()); system.out.println("entityevent: " + entitycreatedevent.getentity()); } }