given a chunk , find a random position in it . concode_field_sep HashMap eligibleChunksForSpawning concode_elem_sep Class nightSpawnEntities[] concode_field_sep void creatureSpecificInit concode_elem_sep void performWorldGenSpawning concode_elem_sep int performSpawning concode_elem_sep boolean canCreatureTypeSpawnAtLocation
ChunkPosition function ( World arg0 , int arg1 , int arg2 ) { Chunk loc0 = arg0 . getChunkFromChunkCoords ( arg1 , arg2 ) ; int loc1 = arg1 * 16 + arg0 . rand . nextInt ( 16 ) ; int loc2 = arg0 . rand . nextInt ( loc0 != null ? Math . max ( 128 , loc0 . getTopFilledSegment ( ) ) : 128 ) ; int loc3 = arg2 * 16 + arg0 . rand . nextInt ( 16 ) ; return new ChunkPosition ( loc1 , loc2 , loc3 ) ; }