Skip to content

Commit

Permalink
Add parts method to PaperSkinPartBuilder
Browse files Browse the repository at this point in the history
Introduce the `parts` method, allowing direct handling of `SkinParts` objects by converting them to raw values. This improves usability and aligns with the existing builder pattern.
  • Loading branch information
NonSwag committed Jan 25, 2025
1 parent d26037c commit 5333b94
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ public SkinPartBuilder show(SkinLayer layer) {
return raw(raw |= layer.getMask());
}

@Override
public SkinPartBuilder parts(SkinParts parts) {
return raw(parts.getRaw());
}

@Override
public SkinPartBuilder raw(int raw) {
this.raw = raw;
Expand Down

0 comments on commit 5333b94

Please sign in to comment.