fix ItemStack names

This commit is contained in:
JaTiTV 2023-07-08 19:42:33 +02:00
parent 7b04697895
commit 567b0a2442

View File

@ -11,43 +11,43 @@ public class T2CitemVersion {
@Getter @Getter
private static ItemStack HeadIS; private static ItemStack HeadIS;
@Getter @Getter
private static ItemStack CRAFTING_TABLE; private static ItemStack CraftingTable;
@Getter @Getter
private static ItemStack YELLOW_WOOL; private static ItemStack YellowWool;
@Getter @Getter
private static ItemStack ORANGE_WOOL; private static ItemStack OrangeWool;
@Getter @Getter
private static ItemStack GREEN_WOOL; private static ItemStack GreenWool;
@Getter @Getter
private static ItemStack GRAY_WOOL; private static ItemStack GrayWool;
@Getter @Getter
private static ItemStack RED_WOOL; private static ItemStack RedWool;
@Getter @Getter
private static ItemStack RED_STAINED_GLASS_PANE; private static ItemStack RedStainedGlassPane;
@Getter @Getter
private static ItemStack BLACK_STAINED_GLASS_PANE; private static ItemStack BlackStainedGlassPane;
public static void scan() { public static void scan() {
if (T2CmcVersion.isMc1_8() || T2CmcVersion.isMc1_9() || T2CmcVersion.isMc1_10() || T2CmcVersion.isMc1_11() || T2CmcVersion.isMc1_12()) { if (T2CmcVersion.isMc1_8() || T2CmcVersion.isMc1_9() || T2CmcVersion.isMc1_10() || T2CmcVersion.isMc1_11() || T2CmcVersion.isMc1_12()) {
Head = Material.valueOf("SKULL_ITEM"); Head = Material.valueOf("SKULL_ITEM");
YELLOW_WOOL = new ItemStack(Material.valueOf("WOOL"), 1, (short) 4); YellowWool = new ItemStack(Material.valueOf("WOOL"), 1, (short) 4);
ORANGE_WOOL = new ItemStack(Material.valueOf("WOOL"), 1, (short) 1); OrangeWool = new ItemStack(Material.valueOf("WOOL"), 1, (short) 1);
GREEN_WOOL = new ItemStack(Material.valueOf("WOOL"), 1, (short) 5); GreenWool = new ItemStack(Material.valueOf("WOOL"), 1, (short) 5);
GRAY_WOOL = new ItemStack(Material.valueOf("WOOL"), 1, (short) 8); GrayWool = new ItemStack(Material.valueOf("WOOL"), 1, (short) 8);
RED_WOOL = new ItemStack(Material.valueOf("WOOL"), 1, (short) 14); RedWool = new ItemStack(Material.valueOf("WOOL"), 1, (short) 14);
RED_STAINED_GLASS_PANE = new ItemStack(Material.valueOf("STAINED_GLASS_PANE"), 1, (short) 14); RedStainedGlassPane = new ItemStack(Material.valueOf("STAINED_GLASS_PANE"), 1, (short) 14);
BLACK_STAINED_GLASS_PANE = new ItemStack(Material.valueOf("STAINED_GLASS_PANE"), 1, (short) 15); BlackStainedGlassPane = new ItemStack(Material.valueOf("STAINED_GLASS_PANE"), 1, (short) 15);
CRAFTING_TABLE = new ItemStack(Material.valueOf("WORKBENCH")); CraftingTable = new ItemStack(Material.valueOf("WORKBENCH"));
} else { } else {
Head = Material.valueOf("PLAYER_HEAD"); Head = Material.valueOf("PLAYER_HEAD");
CRAFTING_TABLE = new ItemStack(Material.CRAFTING_TABLE); CraftingTable = new ItemStack(Material.CRAFTING_TABLE);
YELLOW_WOOL = new ItemStack(Material.YELLOW_WOOL); YellowWool = new ItemStack(Material.YELLOW_WOOL);
ORANGE_WOOL = new ItemStack(Material.ORANGE_WOOL); OrangeWool = new ItemStack(Material.ORANGE_WOOL);
GREEN_WOOL = new ItemStack(Material.GREEN_WOOL); GreenWool = new ItemStack(Material.GREEN_WOOL);
GRAY_WOOL = new ItemStack(Material.GRAY_WOOL); GrayWool = new ItemStack(Material.GRAY_WOOL);
RED_WOOL = new ItemStack(Material.RED_WOOL); RedWool = new ItemStack(Material.RED_WOOL);
RED_STAINED_GLASS_PANE = new ItemStack(Material.RED_STAINED_GLASS_PANE); RedStainedGlassPane = new ItemStack(Material.RED_STAINED_GLASS_PANE);
BLACK_STAINED_GLASS_PANE = new ItemStack(Material.BLACK_STAINED_GLASS_PANE); BlackStainedGlassPane = new ItemStack(Material.BLACK_STAINED_GLASS_PANE);
} }
HeadIS = new ItemStack(Head, 1, (byte) 3); HeadIS = new ItemStack(Head, 1, (byte) 3);
} }