question: adds an entity to the manager . concode_field_sep SnapshotableHashMap<Player,ArrayList<SpoutEntity>> players concode_elem_sep SnapshotableHashMap<Integer,SpoutEntity> entities concode_elem_sep SnapshotManager snapshotManager concode_elem_sep SpoutRegion region concode_elem_sep AtomicInteger nextId concode_field_sep void finalizeRun concode_elem_sep Collection<SpoutEntity> getAll concode_elem_sep void copyAllSnapshots concode_elem_sep void syncEntities concode_elem_sep SpoutEntity getEntity concode_elem_sep boolean isSpawnable concode_elem_sep void removeEntity concode_elem_sep void preSnapshotRun concode_elem_sep SpoutRegion getRegion concode_elem_sep int getNextId concode_elem_sep Collection<SpoutEntity> getAllLive concode_elem_sep List<Player> getPlayers concode_elem_sep void syncEntity
target: void function ( SpoutEntity arg0 ) { int loc0 = arg0 . getId ( ) ; if ( loc0 == SpoutEntity . NOTSPAWNEDID ) { loc0 = getNextId ( ) ; arg0 . setId ( loc0 ) ; } entities . put ( loc0 , arg0 ) ; if ( arg0 instanceof Player ) { players . put ( ( Player ) arg0 , new ArrayList < SpoutEntity > ( ) ) ; } }