Package net.minecraftforge.common
Class AdvancementLoadFix
java.lang.Object
net.minecraftforge.common.AdvancementLoadFix
New implementation of
PlayerAdvancements.ensureAllVisible()
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.logging.log4j.Logger
private static Map<Advancement,
List<Advancement>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
(Set<Advancement> roots) private static boolean
containsAncestor
(Advancement adv, Set<Advancement> set) static void
loadVisibility
(PlayerAdvancements playerAdvancements, Set<Advancement> visible, Set<Advancement> visibilityChanged, Map<Advancement, AdvancementProgress> progress, Set<Advancement> progressChanged, Predicate<Advancement> shouldBeVisible) private static void
updateVisibility
(Advancement adv, Set<Advancement> visible, Set<Advancement> visibilityChanged, Map<Advancement, AdvancementProgress> progress, Set<Advancement> progressChanged, Predicate<Advancement> shouldBeVisible)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
roots
-
-
Constructor Details
-
AdvancementLoadFix
public AdvancementLoadFix()
-
-
Method Details
-
loadVisibility
public static void loadVisibility(PlayerAdvancements playerAdvancements, Set<Advancement> visible, Set<Advancement> visibilityChanged, Map<Advancement, AdvancementProgress> progress, Set<Advancement> progressChanged, Predicate<Advancement> shouldBeVisible) -
containsAncestor
-
updateVisibility
private static void updateVisibility(Advancement adv, Set<Advancement> visible, Set<Advancement> visibilityChanged, Map<Advancement, AdvancementProgress> progress, Set<Advancement> progressChanged, Predicate<Advancement> shouldBeVisible) -
buildSortedTrees
-
buildGraph
-
addEdgesAndChildren
private static void addEdgesAndChildren(Advancement root, com.google.common.graph.MutableGraph<Advancement> tree)
-