Skip to content

Commit

Permalink
unroll steam
Browse files Browse the repository at this point in the history
  • Loading branch information
Machine-Maker committed Jan 12, 2025
1 parent 4bb3a82 commit 695194d
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ public B createBlockData() {

@Override
public @NotNull Collection<B> createBlockDataStates() {
return this.block.getStateDefinition()
.getPossibleStates()
.stream()
.map(BlockState::createCraftBlockData)
.map(this.blockDataClass::cast)
.collect(ImmutableList.toImmutableList());
final ImmutableList<BlockState> possibleStates = this.block.getStateDefinition().getPossibleStates();
final ImmutableList.Builder<B> builder = ImmutableList.builderWithExpectedSize(possibleStates.size());
for (final BlockState possibleState : possibleStates) {
builder.add(this.blockDataClass.cast(possibleState.createCraftBlockData()));
}
return builder.build();
}

@Override
Expand Down

0 comments on commit 695194d

Please sign in to comment.