Class CommonResearchCache

java.lang.Object
com.portingdeadmods.researchd.cache.CommonResearchCache

public final class CommonResearchCache extends Object
  • Field Details

  • 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

      @Nullable public static ResearchPage pageOf(net.minecraft.resources.ResourceKey<Research> res)
      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()