Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier committed Jan 18, 2025
1 parent 32a597f commit 9e562a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/minevalley/core/api/gui/MultiPageGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ MultiPageGui setPageDependantItem(@Nonnegative int slot, @Nonnull Function<Integ
* @return the inventory of the specified page
* @throws IllegalArgumentException if the page is out of bounds
*/
@Nonnull
Inventory getInventory(@Nonnegative int page) throws IllegalArgumentException;

/**
Expand Down Expand Up @@ -111,8 +112,7 @@ MultiPageGui setPageDependantItem(@Nonnegative int slot, @Nonnull Function<Integ
* @return a copy of the underlying inventory of this GUI
*/
@Override
@Nonnull
default Inventory getInventory() {
default @Nonnull Inventory getInventory() {
return getInventory(0);
}

Expand All @@ -124,8 +124,8 @@ default Inventory getInventory() {
* @return nothing
*/
@Override
@Contract("_, _ -> fail")
default InventoryGui updateTitle(@Nonnull Component title, boolean updateInventory) {
@Contract("_ -> fail")
default @Nonnull InventoryGui updateTitle(@Nonnull Component title) {
throw new UnsupportedOperationException("This GUI does not support updating the title.");
}

Expand Down

0 comments on commit 9e562a2

Please sign in to comment.