DifficultyResolver

public final class DifficultyResolver

Resolves package-local names without changing persisted IDs or translated menu labels.

Constructors

Link copied to clipboard
public void DifficultyResolver(String source, List<Map<String, Object>> definitions)

Functions

Link copied to clipboard
public static boolean isCanonical(String id)
Link copied to clipboard
public boolean matches(List<String> filter, Object selectedId, String filterSource)
Link copied to clipboard
public static List<String> parseFilter(Object raw, String source)
Both authored loot and powers accept either one ID or a YAML list of IDs.
Link copied to clipboard
public String resolve(Object raw)
Returns the canonical 0/1/2 ID, or the normalized custom ID when no tier is known.
Link copied to clipboard
public String resolveSelected(Object raw)