Skip to content

Commit 762fb56

Browse files
implement serializable
1 parent 55e56a0 commit 762fb56

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
package me.flame.menus.menu;
22

3-
import lombok.AccessLevel;
4-
import lombok.AllArgsConstructor;
53
import org.bukkit.event.inventory.InventoryType;
64

75
import lombok.Getter;
86

7+
import java.io.Serializable;
8+
99
@Getter
10-
@AllArgsConstructor(access = AccessLevel.PACKAGE)
11-
public enum MenuType {
10+
public enum MenuType implements Serializable {
1211
CHEST(InventoryType.CHEST, 9),
1312
FURNACE(InventoryType.FURNACE, 3),
1413
WORKBENCH(InventoryType.WORKBENCH, 9),
@@ -18,4 +17,9 @@ public enum MenuType {
1817

1918
private final InventoryType type;
2019
private final int limit;
20+
21+
MenuType(InventoryType type, int limit) {
22+
this.type = type;
23+
this.limit = limit;
24+
}
2125
}

0 commit comments

Comments
 (0)