public Image getSprite ( String name ) { Section section = ( Section ) sections . get ( name ) ; if ( section == null ) { throw new RuntimeException ( "Unknown sprite from packed sheet: " + name ) ; } return image . getSubImage ( section . x , section . y , section . width , section . height ) ; }
Get a single named sprite from the sheet