public static CollisionConfig imports ( Configurer configurer ) { Check . notNull ( configurer ) ; final Map < String , Collision > collisions = new HashMap <> ( 0 ) ; for ( final Xml node : configurer . getRoot ( ) . getChildren ( NODE_COLLISION ) ) { final String coll = node . readString ( ATT_NAME ) ; final Collision collision = createCollision ( node ) ; collisions . put ( coll , collision ) ; } return new CollisionConfig ( collisions ) ; }
Create the collision data from node .