Class CommonResearchCache
java.lang.Object
com.portingdeadmods.researchd.cache.CommonResearchCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Map<net.minecraft.resources.ResourceKey<Research>, GlobalResearch> static Map<net.minecraft.resources.ResourceLocation, List<GlobalResearch>> Map of ResearchPage id to list of root nodes (GlobalResearches with no parents within that page)static Map<net.minecraft.resources.ResourceLocation, ResearchPage> static GlobalResearchDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<GlobalResearch> allChildrenOf(net.minecraft.resources.ResourceKey<Research> key) static List<GlobalResearch> allParentsOf(net.minecraft.resources.ResourceKey<Research> key) static voidinitialize(net.minecraft.world.level.Level level) static ResearchPagepageOf(GlobalResearch res) static voidreset()static net.minecraft.resources.ResourceLocationrlPageOf(GlobalResearch res)
-
Field Details
-
globalResearches
-
researchPages
-
pageRoots
Map of ResearchPage id to list of root nodes (GlobalResearches with no parents within that page) -
rootResearch
Deprecated.
-
-
Constructor Details
-
CommonResearchCache
public CommonResearchCache()
-
-
Method Details
-
initialize
public static void initialize(net.minecraft.world.level.Level level) -
rlPageOf
- Returns:
- ResourceLocation of the page that contains the researchPack, null if no page contains it
-
pageOf
- Returns:
- ResearchPage that contains the researchPack, null if no page contains it
-
allChildrenOf
-
allParentsOf
-
reset
public static void reset()
-