Skip to content

Commit

Permalink
Added AdvancedMenu#setLockedSlots(shape) method
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubix327 committed Oct 8, 2022
1 parent 6518ea4 commit bddd8dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/org/mineacademy/fo/menu/AdvancedMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,12 @@ protected final void setLockedSlots(Integer... slots){
* See {@link #setLockedSlots(Integer...)} for the detailed description.<br><br>
* Figures available: {@link MenuSlots.SizedShape}.
*/
protected final void setLockedSlots(MenuSlots.SizedShape figure){
setLockedSlots(figure.getSlots());
protected final void setLockedSlots(MenuSlots.SizedShape sizedShape){
setLockedSlots(sizedShape.getSlots());
}

protected final void setLockedSlots(MenuSlots.Shape shape){
setLockedSlots(shape, getSize());
}

/**
Expand Down

0 comments on commit bddd8dc

Please sign in to comment.