Adds HELMET, BOOTS, LEGGINGS and CHESTPLATE filters

This commit is contained in:
Kristian Knarvik 2022-10-18 10:59:39 +02:00
parent dbdb38d158
commit 430c168de5
3 changed files with 27 additions and 2 deletions

View File

@ -75,6 +75,10 @@ All currently supported presets, and available filters for each preset:
- GOLD - GOLD
- DIAMOND - DIAMOND
- NETHERITE - NETHERITE
- HELMET
- BOOTS
- LEGGINGS
- CHESTPLATE
- TOOL_SMITH - TOOL_SMITH
- WOOD - WOOD
- STONE - STONE

View File

@ -21,7 +21,8 @@ public enum SmithPreset {
* A blacksmith capable of re-forging all armor * A blacksmith capable of re-forging all armor
*/ */
ARMOR_SMITH(new SmithPresetFilter[]{SmithPresetFilter.LEATHER, SmithPresetFilter.IRON, SmithPresetFilter.CHAINMAIL, ARMOR_SMITH(new SmithPresetFilter[]{SmithPresetFilter.LEATHER, SmithPresetFilter.IRON, SmithPresetFilter.CHAINMAIL,
SmithPresetFilter.GOLD, SmithPresetFilter.DIAMOND, SmithPresetFilter.NETHERITE}), SmithPresetFilter.GOLD, SmithPresetFilter.DIAMOND, SmithPresetFilter.NETHERITE, SmithPresetFilter.HELMET,
SmithPresetFilter.BOOTS, SmithPresetFilter.LEGGINGS, SmithPresetFilter.CHESTPLATE}),
/** /**
* A blacksmith capable of re-forging all tools (hoe, axe, shovel, pickaxe, flint and steel, shears, fishing rod) * A blacksmith capable of re-forging all tools (hoe, axe, shovel, pickaxe, flint and steel, shears, fishing rod)

View File

@ -85,7 +85,27 @@ public enum SmithPresetFilter {
/** /**
* Filters to only include miscellaneous tools (fishing rod, flint and steel, shears) * Filters to only include miscellaneous tools (fishing rod, flint and steel, shears)
*/ */
MISC(false, null); MISC(false, null),
/**
* Filters to only include helmets
*/
HELMET(false, "_HELMET"),
/**
* Filters to only include chestplates
*/
CHESTPLATE(false, "_CHESTPLATE"),
/**
* Filters to only include leggings
*/
LEGGINGS(false, "_LEGGINGS"),
/**
* Filters to only include boots
*/
BOOTS(false, "_BOOTS");
private final boolean searchStart; private final boolean searchStart;
private final String identifier; private final String identifier;