update to v2.0.2

This commit is contained in:
Xanadu13
2023-02-10 19:58:06 +08:00
committed by GitHub
parent 1246cb5f91
commit e884a64eea
15 changed files with 133 additions and 67 deletions
@@ -18,16 +18,19 @@ public abstract class GUISlot {
if(section == null) return new EmptySlot();
GUISlotType guiSlotType = GUISlotType.getByName(section.getString("type"));
switch (guiSlotType) {
case ITEM_SLOT -> {
case ITEM_SLOT : {
return new ItemSlot(section);
}
case DRAGON_SLOT -> {
case DRAGON_SLOT : {
return new DragonSlot(section);
}
case PAGE_PREV, PAGE_NEXT, PAGE_TIP, TIP -> {
case PAGE_PREV :
case PAGE_NEXT :
case PAGE_TIP :
case TIP : {
return new TipSlot(guiSlotType, section);
}
case PAGE_JUMP -> {
case PAGE_JUMP : {
return new PageJumpSlot(section);
}
}