Improves the tab-completion values for reforgeAbleItems
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
This commit is contained in:
parent
c5ffa2b0c4
commit
30b8507b9f
@ -1,6 +1,8 @@
|
||||
package net.knarcraft.blacksmith.util;
|
||||
|
||||
import net.knarcraft.blacksmith.config.SettingValueType;
|
||||
import net.knarcraft.blacksmith.config.SmithPreset;
|
||||
import net.knarcraft.blacksmith.config.SmithPresetFilter;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.enchantments.EnchantmentTarget;
|
||||
@ -89,12 +91,17 @@ public final class TabCompleteValuesHelper {
|
||||
*/
|
||||
private static List<String> getReforgeAbleMaterials() {
|
||||
List<String> stringLists = new ArrayList<>();
|
||||
stringLists.add("preset:sword-smith");
|
||||
stringLists.add("preset:weapon-smith");
|
||||
stringLists.add("preset:armor-smith");
|
||||
stringLists.add("preset:tool-smith");
|
||||
stringLists.add("preset:ranged-smith");
|
||||
stringLists.add("bow,crossbow,elytra");
|
||||
for (SmithPreset preset : SmithPreset.values()) {
|
||||
stringLists.add("preset:" + preset.name());
|
||||
for (SmithPresetFilter filter : preset.getSupportedFilters()) {
|
||||
stringLists.add("preset:" + preset.name() + ":" + filter.name());
|
||||
}
|
||||
}
|
||||
stringLists.add("preset:WEAPON_SMITH:RANGED,SHIELD");
|
||||
stringLists.add("preset:WEAPON_SMITH,preset:ARMOR_SMITH");
|
||||
stringLists.add("preset:WEAPON_SMITH,preset:TOOL_SMITH");
|
||||
stringLists.add("preset:ARMOR_SMITH,preset:TOOL_SMITH");
|
||||
stringLists.add("BOW,CROSSBOW,ELYTRA");
|
||||
return stringLists;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user