Skip to content

Commit 66b9c33

Browse files
Reformat code
1 parent de30faa commit 66b9c33

21 files changed

+74
-60
lines changed

invui-core/src/main/java/xyz/xenondevs/invui/gui/Gui.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import xyz.xenondevs.invui.animation.Animation;
99
import xyz.xenondevs.invui.gui.structure.Marker;
1010
import xyz.xenondevs.invui.gui.structure.Structure;
11+
import xyz.xenondevs.invui.inventory.Inventory;
1112
import xyz.xenondevs.invui.item.Item;
1213
import xyz.xenondevs.invui.item.ItemProvider;
13-
import xyz.xenondevs.invui.inventory.Inventory;
1414
import xyz.xenondevs.invui.window.Window;
1515
import xyz.xenondevs.invui.window.WindowManager;
1616

@@ -369,23 +369,23 @@ public interface Gui {
369369
/**
370370
* Fills a rectangle with a {@link Inventory} in this {@link Gui}.
371371
*
372-
* @param x The x coordinate where the rectangle should start
373-
* @param y The y coordinate where the rectangle should start
374-
* @param width The line length of the rectangle.
375-
* @param inventory The {@link Inventory} to be put into this {@link Gui}.
376-
* @param replaceExisting If existing {@link SlotElement SlotElements} should be replaced.
372+
* @param x The x coordinate where the rectangle should start
373+
* @param y The y coordinate where the rectangle should start
374+
* @param width The line length of the rectangle.
375+
* @param inventory The {@link Inventory} to be put into this {@link Gui}.
376+
* @param replaceExisting If existing {@link SlotElement SlotElements} should be replaced.
377377
*/
378378
void fillRectangle(int x, int y, int width, @NotNull Inventory inventory, boolean replaceExisting);
379379

380380
/**
381381
* Fills a rectangle with a {@link Inventory} in this {@link Gui}.
382382
*
383-
* @param x The x coordinate where the rectangle should start
384-
* @param y The y coordinate where the rectangle should start
385-
* @param width The line length of the rectangle.
386-
* @param inventory The {@link Inventory} to be put into this {@link Gui}.
387-
* @param background The {@link ItemProvider} for empty slots of the {@link Inventory}
388-
* @param replaceExisting If existing {@link SlotElement SlotElements} should be replaced.
383+
* @param x The x coordinate where the rectangle should start
384+
* @param y The y coordinate where the rectangle should start
385+
* @param width The line length of the rectangle.
386+
* @param inventory The {@link Inventory} to be put into this {@link Gui}.
387+
* @param background The {@link ItemProvider} for empty slots of the {@link Inventory}
388+
* @param replaceExisting If existing {@link SlotElement SlotElements} should be replaced.
389389
*/
390390
void fillRectangle(int x, int y, int width, @NotNull Inventory inventory, @Nullable ItemProvider background, boolean replaceExisting);
391391

invui-core/src/main/java/xyz/xenondevs/invui/gui/NormalGuiImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ public static class Builder extends AbstractBuilder<Gui, Gui.Builder.Normal> imp
3434
public @NotNull Gui build() {
3535
if (structure == null)
3636
throw new IllegalStateException("Structure is not defined.");
37-
37+
3838
var gui = new NormalGuiImpl(structure);
3939
applyModifiers(gui);
4040
return gui;
4141
}
42-
42+
4343
}
4444

4545
}

invui-core/src/main/java/xyz/xenondevs/invui/gui/PagedGui.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public interface PagedGui<C> extends Gui {
134134
*
135135
* @param width The width of the {@link PagedGui}.
136136
* @param height The height of the {@link PagedGui}.
137-
* @param inventories The {@link Inventory Inventories} to use as pages.
137+
* @param inventories The {@link Inventory Inventories} to use as pages.
138138
* @param contentListSlots The slots where content should be displayed.
139139
* @return The created {@link PagedGui}.
140140
*/
@@ -145,8 +145,8 @@ public interface PagedGui<C> extends Gui {
145145
/**
146146
* Creates a new {@link PagedGui}.
147147
*
148-
* @param structure The {@link Structure} to use.
149-
* @param inventories The {@link Inventory Inventories} to use as pages.
148+
* @param structure The {@link Structure} to use.
149+
* @param inventories The {@link Inventory Inventories} to use as pages.
150150
* @return The created {@link PagedGui}.
151151
*/
152152
static @NotNull PagedGui<@NotNull Inventory> ofInventories(@NotNull Structure structure, @NotNull List<@NotNull Inventory> inventories) {

invui-core/src/main/java/xyz/xenondevs/invui/gui/PagedInventoriesGuiImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class PagedInventoriesGuiImpl extends AbstractPagedGui<Inventory> {
2525
*
2626
* @param width The width of this Gui.
2727
* @param height The height of this Gui.
28-
* @param inventories The {@link Inventory Inventories} to use as pages.
28+
* @param inventories The {@link Inventory Inventories} to use as pages.
2929
* @param contentListSlots The slots where content should be displayed.
3030
*/
3131
public PagedInventoriesGuiImpl(int width, int height, @Nullable List<@NotNull Inventory> inventories, int... contentListSlots) {
@@ -36,8 +36,8 @@ public PagedInventoriesGuiImpl(int width, int height, @Nullable List<@NotNull In
3636
/**
3737
* Creates a new {@link PagedInventoriesGuiImpl}.
3838
*
39-
* @param inventories The {@link Inventory Inventories} to use as pages.
40-
* @param structure The {@link Structure} to use.
39+
* @param inventories The {@link Inventory Inventories} to use as pages.
40+
* @param structure The {@link Structure} to use.
4141
*/
4242
public PagedInventoriesGuiImpl(@Nullable List<@NotNull Inventory> inventories, @NotNull Structure structure) {
4343
super(structure.getWidth(), structure.getHeight(), false, structure);

invui-core/src/main/java/xyz/xenondevs/invui/gui/ScrollGui.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import org.jetbrains.annotations.NotNull;
55
import org.jetbrains.annotations.Nullable;
66
import xyz.xenondevs.invui.gui.structure.Structure;
7-
import xyz.xenondevs.invui.item.Item;
87
import xyz.xenondevs.invui.inventory.Inventory;
8+
import xyz.xenondevs.invui.item.Item;
99

1010
import java.util.List;
1111
import java.util.function.BiConsumer;

invui-core/src/main/java/xyz/xenondevs/invui/gui/ScrollInventoryGuiImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/**
1212
* A {@link AbstractScrollGui} that uses {@link Inventory VirtualInventories} as content.
13-
*
13+
*
1414
* @see ScrollItemsGuiImpl
1515
* @see ScrollNestedGuiImpl
1616
*/

invui-core/src/main/java/xyz/xenondevs/invui/gui/SlotElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package xyz.xenondevs.invui.gui;
22

33
import org.bukkit.inventory.ItemStack;
4+
import xyz.xenondevs.invui.inventory.Inventory;
45
import xyz.xenondevs.invui.item.Item;
56
import xyz.xenondevs.invui.item.ItemProvider;
6-
import xyz.xenondevs.invui.inventory.Inventory;
77

88
import java.util.ArrayList;
99
import java.util.List;

invui-core/src/main/java/xyz/xenondevs/invui/gui/structure/InventorySlotElementSupplier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import org.jetbrains.annotations.Nullable;
55
import xyz.xenondevs.invui.gui.SlotElement;
66
import xyz.xenondevs.invui.gui.SlotElement.InventorySlotElement;
7-
import xyz.xenondevs.invui.item.ItemProvider;
87
import xyz.xenondevs.invui.inventory.Inventory;
8+
import xyz.xenondevs.invui.item.ItemProvider;
99

1010
import java.util.function.Supplier;
1111

invui-core/src/main/java/xyz/xenondevs/invui/gui/structure/Marker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* Used to mark slots in a {@link Structure} as special slots.
5-
*
5+
*
66
* @see Markers
77
*/
88
public class Marker {

invui-core/src/main/java/xyz/xenondevs/invui/gui/structure/Structure.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
import xyz.xenondevs.invui.gui.Gui;
99
import xyz.xenondevs.invui.gui.SlotElement;
1010
import xyz.xenondevs.invui.gui.SlotElement.ItemSlotElement;
11+
import xyz.xenondevs.invui.inventory.Inventory;
1112
import xyz.xenondevs.invui.item.Item;
1213
import xyz.xenondevs.invui.item.ItemProvider;
1314
import xyz.xenondevs.invui.item.ItemWrapper;
1415
import xyz.xenondevs.invui.item.impl.SimpleItem;
15-
import xyz.xenondevs.invui.inventory.Inventory;
1616

1717
import java.util.HashMap;
1818
import java.util.function.Supplier;

0 commit comments

Comments
 (0)