private void getNextEventIndex ( ) { for ( int i = next + 1 ; i < events . size ( ) ; i ++ ) { String evName = getValueOr ( events . get ( i ) , "event" , "" ) ; if ( evName . equals ( eventType ) ) { next = i ; return ; } } next = events . size ( ) ; }
Move index to the next planting event