Skip to content

Commit

Permalink
Overridden methods to fix return types
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Apr 12, 2024
1 parent e69d174 commit f8fb44b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gui/base/src/main/java/it/angrybear/yagl/guis/ResizableGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import it.angrybear.yagl.actions.BiGUIAction;
import it.angrybear.yagl.actions.GUIAction;
import it.angrybear.yagl.contents.GUIContent;
import it.angrybear.yagl.contents.ItemGUIContent;
import it.angrybear.yagl.items.Item;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
Expand Down Expand Up @@ -117,11 +118,21 @@ private void checkSize(int size) {
return (ResizableGUI) super.addContent(contents);
}

@Override
public @NotNull ResizableGUI addContent(ItemGUIContent @NotNull ... contents) {
return (ResizableGUI) super.addContent(contents);
}

@Override
public @NotNull ResizableGUI setContents(int slot, Item @NotNull ... contents) {
return (ResizableGUI) super.setContents(slot, contents);
}

@Override
public @NotNull ResizableGUI setContents(int slot, ItemGUIContent @NotNull ... contents) {
return (ResizableGUI) super.setContents(slot, contents);
}

@Override
public @NotNull ResizableGUI onClickOutside(@NotNull String command) {
return (ResizableGUI) super.onClickOutside(command);
Expand Down

0 comments on commit f8fb44b

Please sign in to comment.