Dallas and the New York Knicks agreed Wednesday to a six-player trade that brings center Tyson Chandler back to the Mavericks three years after he helped them win a championship only to leave right away in free agency.

The Mavericks sent guards Jose Calderon, Shane Larkin and Wayne Ellington and center Samuel Dalembert to the Knicks for Chandler and point guard Raymond Felton. The Knicks also get both of Dallas’ draft picks Thursday night, a pair of second-round selections at Nos. 34 and 51.

New York didn’t have a draft pick before the first major personnel move since Phil Jackson took over as team president.

NEW YORK — Andrew Wiggins and Jabari Parker aren’t NBA players yet and they are already learning their first lesson.

This is LeBron James’ league and they will just be playing in it.

A night before they could be the first two selections in what appears to be a deep NBA draft, Wiggins, Parker and the rest of the class of 2014 were sharing the spotlight with James, whose decision to opt out of his contract and become a free agent still had the league shaking a day later.

Carmelo Anthony has the same plan as James, and right now they are a 1-2 that Wiggins and Parker can’t match.

“They’re going to dictate how this draft goes,” Parker said.

The Cleveland Cavaliers have the No. 1 selection for a second straight year.

Notes

• The Houston Rockets traded center Omer Asik and cash considerations to the New Orleans Pelicans for a protected future first-round draft pick. Houston is trying to clear cap room to make a run at James or Anthony.

• Sacramento Kings forward Rudy Gay exercised his $19.3 million player option for next season. The Kings also announced they have extended a qualifying offer to point guard Isaiah Thomas, the former Washington standout, to make him a restricted free agent. Thomas averaged 20.3 points and 6.3 assists in 62 games last season.

• The Utah Jazz extended a qualifying offer to forward Gordon Hayward, making him a restricted free agent.

Nick Young opted out of his contract with the Los Angeles Lakers.