public class AdvancementLoadFix
extends java.lang.Object
PlayerAdvancements.ensureAllVisible()
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
private static java.util.Map<Advancement,java.util.List<Advancement>> |
roots |
Constructor and Description |
---|
AdvancementLoadFix() |
Modifier and Type | Method and Description |
---|---|
private static void |
addEdgesAndChildren(Advancement root,
com.google.common.graph.MutableGraph<Advancement> tree) |
private static com.google.common.graph.Graph<Advancement> |
buildGraph(Advancement root) |
static void |
buildSortedTrees(java.util.Set<Advancement> roots) |
private static boolean |
containsAncestor(Advancement adv,
java.util.Set<Advancement> set) |
static void |
loadVisibility(PlayerAdvancements playerAdvancements,
java.util.Set<Advancement> visible,
java.util.Set<Advancement> visibilityChanged,
java.util.Map<Advancement,AdvancementProgress> progress,
java.util.Set<Advancement> progressChanged,
java.util.function.Predicate<Advancement> shouldBeVisible) |
private static void |
updateVisibility(Advancement adv,
java.util.Set<Advancement> visible,
java.util.Set<Advancement> visibilityChanged,
java.util.Map<Advancement,AdvancementProgress> progress,
java.util.Set<Advancement> progressChanged,
java.util.function.Predicate<Advancement> shouldBeVisible) |
private static final org.apache.logging.log4j.Logger LOGGER
private static java.util.Map<Advancement,java.util.List<Advancement>> roots
public static void loadVisibility(PlayerAdvancements playerAdvancements, java.util.Set<Advancement> visible, java.util.Set<Advancement> visibilityChanged, java.util.Map<Advancement,AdvancementProgress> progress, java.util.Set<Advancement> progressChanged, java.util.function.Predicate<Advancement> shouldBeVisible)
private static boolean containsAncestor(Advancement adv, java.util.Set<Advancement> set)
private static void updateVisibility(Advancement adv, java.util.Set<Advancement> visible, java.util.Set<Advancement> visibilityChanged, java.util.Map<Advancement,AdvancementProgress> progress, java.util.Set<Advancement> progressChanged, java.util.function.Predicate<Advancement> shouldBeVisible)
public static void buildSortedTrees(java.util.Set<Advancement> roots)
private static com.google.common.graph.Graph<Advancement> buildGraph(Advancement root)
private static void addEdgesAndChildren(Advancement root, com.google.common.graph.MutableGraph<Advancement> tree)