Skip to content

Commit

Permalink
Implemented unsetter corner methods
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Apr 17, 2024
1 parent 66d8ff3 commit 7ec0be4
Show file tree
Hide file tree
Showing 2 changed files with 201 additions and 0 deletions.
100 changes: 100 additions & 0 deletions gui/base/src/main/java/it/angrybear/yagl/guis/PageableGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,11 @@ public int columns() {
return (PageableGUI) GUI.super.setAllSides(contents);
}

@Override
public @NotNull PageableGUI unsetAllSides() {
return (PageableGUI) GUI.super.unsetAllSides();
}

@Override
public @NotNull PageableGUI setTopAndBottomSides(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setTopAndBottomSides(contents);
Expand All @@ -378,6 +383,11 @@ public int columns() {
return (PageableGUI) GUI.super.setTopAndBottomSides(contents);
}

@Override
public @NotNull PageableGUI unsetTopAndBottomSides() {
return (PageableGUI) GUI.super.unsetTopAndBottomSides();
}

@Override
public @NotNull PageableGUI setLeftAndRightSides(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setLeftAndRightSides(contents);
Expand All @@ -398,6 +408,11 @@ public int columns() {
return (PageableGUI) GUI.super.setLeftAndRightSides(contents);
}

@Override
public @NotNull PageableGUI unsetLeftAndRightSides() {
return (PageableGUI) GUI.super.unsetLeftAndRightSides();
}

@Override
public @NotNull PageableGUI setTopSide(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setTopSide(contents);
Expand All @@ -418,6 +433,16 @@ public int columns() {
return (PageableGUI) GUI.super.setTopSide(contents);
}

@Override
public @NotNull PageableGUI unsetTopSide() {
return (PageableGUI) GUI.super.unsetTopSide();
}

@Override
public @NotNull Set<Integer> topSlots() {
return GUI.super.topSlots();
}

@Override
public @NotNull PageableGUI setLeftSide(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setLeftSide(contents);
Expand All @@ -438,6 +463,16 @@ public int columns() {
return (PageableGUI) GUI.super.setLeftSide(contents);
}

@Override
public @NotNull PageableGUI unsetLeftSide() {
return (PageableGUI) GUI.super.unsetLeftSide();
}

@Override
public @NotNull Set<Integer> leftSlots() {
return GUI.super.leftSlots();
}

@Override
public @NotNull PageableGUI setBottomSide(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setBottomSide(contents);
Expand All @@ -458,6 +493,16 @@ public int columns() {
return (PageableGUI) GUI.super.setBottomSide(contents);
}

@Override
public @NotNull PageableGUI unsetBottomSide() {
return (PageableGUI) GUI.super.unsetBottomSide();
}

@Override
public @NotNull Set<Integer> bottomSlots() {
return GUI.super.bottomSlots();
}

@Override
public @NotNull PageableGUI setRightSide(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setRightSide(contents);
Expand All @@ -478,6 +523,16 @@ public int columns() {
return (PageableGUI) GUI.super.setRightSide(contents);
}

@Override
public @NotNull PageableGUI unsetRightSide() {
return (PageableGUI) GUI.super.unsetRightSide();
}

@Override
public @NotNull Set<Integer> rightSlots() {
return GUI.super.rightSlots();
}

@Override
public @NotNull PageableGUI setNorthWest(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setNorthWest(contents);
Expand All @@ -493,6 +548,11 @@ public int columns() {
return (PageableGUI) GUI.super.setNorthWest(contents);
}

@Override
public @NotNull PageableGUI unsetNorthWest() {
return (PageableGUI) GUI.super.unsetNorthWest();
}

@Override
public @NotNull PageableGUI setNorth(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setNorth(contents);
Expand All @@ -508,6 +568,11 @@ public int columns() {
return (PageableGUI) GUI.super.setNorth(contents);
}

@Override
public @NotNull PageableGUI unsetNorth() {
return (PageableGUI) GUI.super.unsetNorth();
}

@Override
public @NotNull PageableGUI setNorthEast(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setNorthEast(contents);
Expand All @@ -523,6 +588,11 @@ public int columns() {
return (PageableGUI) GUI.super.setNorthEast(contents);
}

@Override
public @NotNull PageableGUI unsetNorthEast() {
return (PageableGUI) GUI.super.unsetNorthEast();
}

@Override
public @NotNull PageableGUI setMiddleWest(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setMiddleWest(contents);
Expand All @@ -538,6 +608,11 @@ public int columns() {
return (PageableGUI) GUI.super.setMiddleWest(contents);
}

@Override
public @NotNull PageableGUI unsetMiddleWest() {
return (PageableGUI) GUI.super.unsetMiddleWest();
}

@Override
public @NotNull PageableGUI setMiddle(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setMiddle(contents);
Expand All @@ -553,6 +628,11 @@ public int columns() {
return (PageableGUI) GUI.super.setMiddle(contents);
}

@Override
public @NotNull PageableGUI unsetMiddle() {
return (PageableGUI) GUI.super.unsetMiddle();
}

@Override
public @NotNull PageableGUI setMiddleEast(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setMiddleEast(contents);
Expand All @@ -568,6 +648,11 @@ public int columns() {
return (PageableGUI) GUI.super.setMiddleEast(contents);
}

@Override
public @NotNull PageableGUI unsetMiddleEast() {
return (PageableGUI) GUI.super.unsetMiddleEast();
}

@Override
public @NotNull PageableGUI setSouthWest(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setSouthWest(contents);
Expand All @@ -583,6 +668,11 @@ public int columns() {
return (PageableGUI) GUI.super.setSouthWest(contents);
}

@Override
public @NotNull PageableGUI unsetSouthWest() {
return (PageableGUI) GUI.super.unsetSouthWest();
}

@Override
public @NotNull PageableGUI setSouth(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setSouth(contents);
Expand All @@ -598,6 +688,11 @@ public int columns() {
return (PageableGUI) GUI.super.setSouth(contents);
}

@Override
public @NotNull PageableGUI unsetSouth() {
return (PageableGUI) GUI.super.unsetSouth();
}

@Override
public @NotNull PageableGUI setSouthEast(Item @NotNull ... contents) {
return (PageableGUI) GUI.super.setSouthEast(contents);
Expand All @@ -613,6 +708,11 @@ public int columns() {
return (PageableGUI) GUI.super.setSouthEast(contents);
}

@Override
public @NotNull PageableGUI unsetSouthEast() {
return (PageableGUI) GUI.super.unsetSouthEast();
}

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

0 comments on commit 7ec0be4

Please sign in to comment.