Class CommonResearchCache
java.lang.Object
com.portingdeadmods.researchd.cache.CommonResearchCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Map<net.minecraft.resources.ResourceLocation, List<CachedResearchRelations>> Map of ResearchPage id to list of root nodes (GlobalResearches with no parents within that page)static Map<net.minecraft.resources.ResourceLocation, ResearchPage> static Map<net.minecraft.resources.ResourceKey<Research>, CachedResearchRelations> static CachedResearchRelationsDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<CachedResearchRelations> allChildrenOf(net.minecraft.resources.ResourceKey<Research> key) static List<CachedResearchRelations> allParentsOf(net.minecraft.resources.ResourceKey<Research> key) static voidinitialize(net.minecraft.world.level.Level level) static ResearchPagestatic voidreset()static net.minecraft.resources.ResourceLocation
-
Field Details
-
researchRelations
public static Map<net.minecraft.resources.ResourceKey<Research>,CachedResearchRelations> researchRelations -
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
@Nullable public static net.minecraft.resources.ResourceLocation rlPageOf(net.minecraft.resources.ResourceKey<Research> res) - 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
public static List<CachedResearchRelations> allChildrenOf(net.minecraft.resources.ResourceKey<Research> key) -
allParentsOf
public static List<CachedResearchRelations> allParentsOf(net.minecraft.resources.ResourceKey<Research> key) -
reset
public static void reset()
-