Skip to content

Commit 648b4b6

Browse files
committed
Exclude unrelated methods from ConfigItem config implementation
1 parent cee287e commit 648b4b6

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ tasks {
160160
"org.bstats",
161161
"org.json",
162162
"org.postgresql",
163-
"net.dzikoysk",
163+
// "net.dzikoysk",
164164
"net.kyori",
165165
"io.papermc",
166166
"io.sentry",

src/main/java/com/eternalcode/parcellockers/configuration/implementation/ConfigItem.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,55 +52,67 @@ public GuiItem toGuiItem(GuiAction<InventoryClickEvent> action) {
5252
.glow(this.glow);
5353
}
5454

55+
@Exclude
5556
public GuiItem toGuiItem() {
5657
return this.toBuilder().asGuiItem();
5758
}
5859

60+
@Exclude
5961
public ItemStack toItemStack() {
6062
return this.toBuilder().build();
6163
}
6264

65+
@Exclude
6366
public Material getType() {
6467
return this.type;
6568
}
6669

70+
@Exclude
6771
public String getName() {
6872
return this.name;
6973
}
7074

75+
@Exclude
7176
public List<String> getLore() {
7277
return this.lore;
7378
}
7479

80+
@Exclude
7581
public boolean isGlow() {
7682
return this.glow;
7783
}
7884

85+
@Exclude
7986
public ConfigItem setType(Material type) {
8087
this.type = type;
8188
return this;
8289
}
8390

91+
@Exclude
8492
public ConfigItem setName(String name) {
8593
this.name = name;
8694
return this;
8795
}
8896

97+
@Exclude
8998
public ConfigItem setLore(List<String> lore) {
9099
this.lore = lore;
91100
return this;
92101
}
93102

103+
@Exclude
94104
public ConfigItem addLore(String lore) {
95105
this.lore.add(lore);
96106
return this;
97107
}
98108

109+
@Exclude
99110
public ConfigItem setGlow(boolean glow) {
100111
this.glow = glow;
101112
return this;
102113
}
103114

115+
@Exclude
104116
@Override
105117
public ConfigItem clone() {
106118
try {

0 commit comments

Comments
 (0)