We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55e56a0 commit 762fb56Copy full SHA for 762fb56
src/main/java/me/flame/menus/menu/MenuType.java
@@ -1,14 +1,13 @@
1
package me.flame.menus.menu;
2
3
-import lombok.AccessLevel;
4
-import lombok.AllArgsConstructor;
5
import org.bukkit.event.inventory.InventoryType;
6
7
import lombok.Getter;
8
+import java.io.Serializable;
+
9
@Getter
10
-@AllArgsConstructor(access = AccessLevel.PACKAGE)
11
-public enum MenuType {
+public enum MenuType implements Serializable {
12
CHEST(InventoryType.CHEST, 9),
13
FURNACE(InventoryType.FURNACE, 3),
14
WORKBENCH(InventoryType.WORKBENCH, 9),
@@ -18,4 +17,9 @@ public enum MenuType {
18
17
19
private final InventoryType type;
20
private final int limit;
21
+ MenuType(InventoryType type, int limit) {
22
+ this.type = type;
23
+ this.limit = limit;
24
+ }
25
}
0 commit comments