Perhaps Friday night's free giveaway should have been a pair of toothpicks.

At least it would have been much easier for everyone to keep their eyes propped open, something that certainly wasn't easy, given the inferior and at times sloppy play prevalent on the Barclays Center floor.

Leave it to Deron Williams to finally wake everybody up -- well, those cheering for the Nets, anyway.

Williams scored 12 of his 29 points in the third quarter as the Nets beat the Knicks, 110-99, in the teams' first meeting of the season in front of a sellout crowd of 17,732.

Brook Lopez, who was extremely upset after getting outplayed by the Timberwolves' Nikola Pekovic in Wednesday night's loss, bounced back and established himself on the interior for the Nets (3-2). He had 20 points and nine rebounds, helping to fuel an attack that shot 51.4 percent from the floor.

Joe Johnson added 18 points for the Nets.

Carmelo Anthony paced the Knicks (2-4) with 19 points but never got into a rhythm. Anthony's shot was off coming into this one, as evidenced by a 13-for-44 showing and only 30 points in the Knicks' previous two games, and he shot 5-for-20 against the Nets. With Anthony struggling to get it going, the Knicks' offense never had a chance.

Williams shot 10-for-15, hitting six of his final eight attempts, and also was efficient distributing and taking care of the ball. He had six assists and three turnovers, nicely serving as the Nets' offensive engine and keeping his solid start to the season going in fine fashion.

"He let the flow come," Nets coach Lionel Hollins said, "and then at the end, he started attacking the basket when they weren't expecting him to drive to the basket."

Such an effective offensive explosion by Williams and Lopez on the same night is a rarity, in part because of their injury-plagued campaigns since the franchise moved to the east side of the Hudson River.

Friday night's performance marked the first time the Nets' main inside-outside tandem has topped 20 points in the same game since Dec. 10, 2013.

The Nets also were hot from beyond the arc, connecting on 14 of 24 attempts from three-point range and making it that much harder to collapse in the paint and double-team Lopez.

With backup point guard Pablo Prigioni sitting out because of a sprained right ankle, Knicks coach Derek Fisher was forced to use his fourth starting lineup through the team's first six games, a clear sign that they're still searching for an identity and cohesiveness. It didn't get much better against the Nets.

The Knicks, who trailed by as many as 22 points, shot 41.1 percent from the floor and were outscored in every quarter but the fourth. By then, the game was well in hand.

Tim Hardaway Jr. had 16 points, Amar'e Stoudemire 14 and rookie Cleanthony Early 12 for the Knicks.

One of the Knicks' few positives of the night was their effort in the second-chance department, scoring 17 points on 14 opportunities.