Skip to content

Commit dfc8351

Browse files
committed
[add] 上位金りんごを追加
1 parent 4fd38c5 commit dfc8351

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

src/main/java/com/github/elic0de/thejpspit/gui/ShopMenu.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class ShopMenu {
2020
private static final String[] MENU_LAYOUT = {
2121
" ",
2222
" SCBofLc ",
23-
" tvue ",
23+
" tvueG ",
2424
" "
2525
};
2626

src/main/java/com/github/elic0de/thejpspit/item/ItemManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@ public static void createItems() {
6161
register(new ItemUltimateSword());
6262
register(new ItemLavaBucket());
6363
register(new ItemEnderPearl());
64+
register(new ItemEnchantedGoldenApple());
6465
}
6566
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package com.github.elic0de.thejpspit.item.items;
2+
3+
import com.github.elic0de.thejpspit.item.PitItemEntry;
4+
import org.bukkit.Material;
5+
import org.bukkit.inventory.ItemStack;
6+
7+
public class ItemEnchantedGoldenApple extends PitItemEntry {
8+
9+
@Override
10+
public String getId() {
11+
return "enchanted_golden_apple";
12+
}
13+
14+
@Override
15+
public ItemStack getRawItemStack() {
16+
return new ItemStack(Material.ENCHANTED_GOLDEN_APPLE);
17+
}
18+
19+
@Override
20+
public int getPrice() {
21+
return 200;
22+
}
23+
24+
@Override
25+
public int getRequiredLevel() {
26+
return 0;
27+
}
28+
29+
@Override
30+
public String getName() {
31+
return "上位金りんご";
32+
}
33+
34+
@Override
35+
public char getSlotChar() {
36+
return 'G';
37+
}
38+
}

0 commit comments

Comments
 (0)