public int getShort ( Integer id , Integer type ) { int result = 0 ; Integer offset = m_meta . getOffset ( id , type ) ; if ( offset != null ) { byte [ ] value = m_map . get ( offset ) ; if ( value != null && value . length >= 2 ) { result = MPPUtility . getShort ( value , 0 ) ; } } return ( result ) ; }
This method retrieves an integer of the specified type belonging to the item with the specified unique ID .