Package net.minecraftforge.common
Class AdvancementLoadFix
- java.lang.Object
-
- net.minecraftforge.common.AdvancementLoadFix
-
public class AdvancementLoadFix extends java.lang.Object
New implementation ofPlayerAdvancements.ensureAllVisible()
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.Logger
LOGGER
private static java.util.Map<Advancement,java.util.List<Advancement>>
roots
-
Constructor Summary
Constructors Constructor Description AdvancementLoadFix()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
roots
private static java.util.Map<Advancement,java.util.List<Advancement>> roots
-
-
Method Detail
-
loadVisibility
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)
-
containsAncestor
private static boolean containsAncestor(Advancement adv, java.util.Set<Advancement> set)
-
updateVisibility
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)
-
buildSortedTrees
public static void buildSortedTrees(java.util.Set<Advancement> roots)
-
buildGraph
private static com.google.common.graph.Graph<Advancement> buildGraph(Advancement root)
-
addEdgesAndChildren
private static void addEdgesAndChildren(Advancement root, com.google.common.graph.MutableGraph<Advancement> tree)
-
-