Skip to content

Commit

Permalink
Clean up GeneratorEditPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Feb 3, 2022
1 parent b31dfea commit 98eb1f0
Showing 1 changed file with 0 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,6 @@ private PanelItem createButton(Button button)

description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "click-to-change"));

// Not implemented in current GUI.
break;
}
case ICON, LOCKED_ICON -> {
itemStack = button == Button.LOCKED_ICON ?
Expand All @@ -395,8 +392,6 @@ private PanelItem createButton(Button button)
}

glow = this.selectedButton == button;

break;
}
case DESCRIPTION -> {
itemStack = new ItemStack(Material.WRITTEN_BOOK);
Expand Down Expand Up @@ -438,9 +433,6 @@ private PanelItem createButton(Button button)

description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "click-to-change"));

// Not implemented in current GUI.
break;
}
case DEFAULT -> {
if (this.generatorTier.isDefaultGenerator()) {
Expand All @@ -462,8 +454,6 @@ private PanelItem createButton(Button button)

description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "click-to-toggle"));

break;
}
case PRIORITY -> {
itemStack = new ItemStack(Material.HOPPER);
Expand Down Expand Up @@ -492,8 +482,6 @@ private PanelItem createButton(Button button)

description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "click-to-change"));

break;
}
case TYPE -> {
itemStack = new ItemStack(
Expand Down Expand Up @@ -521,8 +509,6 @@ private PanelItem createButton(Button button)

description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "click-to-change"));

break;
}
case REQUIRED_MIN_LEVEL -> {
itemStack = new ItemStack(Material.DIAMOND);
Expand Down Expand Up @@ -551,8 +537,6 @@ private PanelItem createButton(Button button)

description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "click-to-change"));

break;
}
case REQUIRED_PERMISSIONS -> {
itemStack = new ItemStack(Material.BOOK);
Expand Down Expand Up @@ -600,8 +584,6 @@ private PanelItem createButton(Button button)
if (!this.generatorTier.getRequiredPermissions().isEmpty()) {
description.add(this.user.getTranslation(Constants.TIPS + "shift-click-to-reset"));
}

break;
}
case PURCHASE_COST -> {
itemStack = new ItemStack(Material.GOLD_BLOCK);
Expand Down Expand Up @@ -631,8 +613,6 @@ private PanelItem createButton(Button button)

description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "click-to-change"));

break;
}
case ACTIVATION_COST -> {
itemStack = new ItemStack(Material.GOLD_INGOT);
Expand Down Expand Up @@ -662,8 +642,6 @@ private PanelItem createButton(Button button)

description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "click-to-change"));

break;
}
case BIOMES -> {
itemStack = new ItemStack(Material.FILLED_MAP);
Expand Down Expand Up @@ -696,8 +674,6 @@ private PanelItem createButton(Button button)

description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "click-to-change"));

break;
}
case DEPLOYED -> {
itemStack = new ItemStack(Material.LEVER);
Expand All @@ -721,8 +697,6 @@ private PanelItem createButton(Button button)

description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "click-to-toggle"));

break;
}
case TREASURE_AMOUNT -> {
itemStack = new ItemStack(Material.EMERALD);
Expand Down Expand Up @@ -751,8 +725,6 @@ private PanelItem createButton(Button button)

description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "click-to-change"));

break;
}
case TREASURE_CHANCE -> {
itemStack = new ItemStack(Material.PAPER);
Expand Down Expand Up @@ -781,8 +753,6 @@ private PanelItem createButton(Button button)

description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "click-to-change"));

break;
}
}

Expand Down Expand Up @@ -897,8 +867,6 @@ private PanelItem createButton(Action button)
};

icon = Material.OAK_DOOR;

break;
}
case PREVIOUS -> {
count = Utils.getPreviousPage(this.pageIndex, this.maxPageIndex);
Expand All @@ -916,7 +884,6 @@ private PanelItem createButton(Action button)
};

icon = Material.TIPPED_ARROW;
break;
}
case NEXT -> {
count = Utils.getNextPage(this.pageIndex, this.maxPageIndex);
Expand All @@ -934,7 +901,6 @@ private PanelItem createButton(Action button)
};

icon = Material.TIPPED_ARROW;
break;
}
case ADD_MATERIAL -> {
description.add(this.user.getTranslationOrNothing(reference + ".description"));
Expand Down Expand Up @@ -993,8 +959,6 @@ else if (this.activeTab == Tab.TREASURES)

return true;
};

break;
}
case REMOVE_MATERIAL -> {
icon = this.selectedMaterial.isEmpty() && this.selectedTreasures.isEmpty() ?
Expand Down Expand Up @@ -1047,8 +1011,6 @@ else if (this.activeTab == Tab.TREASURES)
description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "select-before"));
}

break;
}
}

Expand Down

0 comments on commit 98eb1f0

Please sign in to comment.