question: @ Override protected void buildSprites ( T entity , final Map < Object , Sprite > map ) { int width = getWidth ( ) ; String clazz = entity . getEntityClass ( ) ; if ( clazz == null ) { LOGGER . warn ( "No entity class set" ) ; clazz = "grain_field" ; } final SpriteStore store = SpriteStore . get ( ) ; ZoneInfo info = ZoneInfo . get ( ) ; final Sprite tiles = store . getModifiedSprite ( translate ( clazz . replace ( " " , "_" ) ) , info . getZoneColor ( ) , info . getColorMethod ( ) ) ; int states = entity . getMaximumRipeness ( ) + 1 ; final int tileSetHeight = tiles . getHeight ( ) ; final int imageHeight = tileSetHeight / states ; if ( tileSetHeight % states != 0 ) { LOGGER . warn ( "Inconsistent image height in " + translate ( clazz . replace ( " " , "_" ) ) + ": image height " + tileSetHeight + " with " + states + " states." ) ; } int i = 0 ; for ( int y = 0 ; y < tileSetHeight ; y += imageHeight ) { map . put ( Integer . valueOf ( i ++ ) , store . getTile ( tiles , 0 , y , width , imageHeight ) ) ; } calculateOffset ( entity , width , imageHeight ) ; }
target:  Populate named state sprites.