Class InfoBookRegistry

java.lang.Object
org.cyclops.cyclopscore.infobook.InfoBookRegistry
All Implemented Interfaces:
IInfoBookRegistry, IRegistry

public class InfoBookRegistry extends Object implements IInfoBookRegistry
Registry for info books for a mod.
  • Constructor Details

    • InfoBookRegistry

      public InfoBookRegistry()
  • Method Details

    • registerInfoBook

      public void registerInfoBook(IInfoBook infoBook, String path)
      Description copied from interface: IInfoBookRegistry
      Register a new infobook.
      Specified by:
      registerInfoBook in interface IInfoBookRegistry
      Parameters:
      infoBook - The infobook to register.
      path - The path to the xml file of the book.
    • registerSection

      public void registerSection(ModBase<?> mod, IInfoBook infoBook, String parentSection, String sectionPath)
      Description copied from interface: IInfoBookRegistry
      Register a new section to the given section of the given infobook.
      Specified by:
      registerSection in interface IInfoBookRegistry
      Parameters:
      mod - The mod owning the section.
      infoBook - The infobook to register to.
      parentSection - The section to register this new section to.
      sectionPath - The path to the xml file of the section to register.
    • getRoot

      public InfoSection getRoot(IInfoBook infoBook)
      Description copied from interface: IInfoBookRegistry
      Get the root of the given book.
      Specified by:
      getRoot in interface IInfoBookRegistry
      Parameters:
      infoBook - The info book to get the root from.
      Returns:
      The root section.
    • onClientTagsLoadedStatic

      public static void onClientTagsLoadedStatic(net.neoforged.neoforge.event.TagsUpdatedEvent event)
    • onClientRecipesLoadedStatic

      public static void onClientRecipesLoadedStatic(net.neoforged.neoforge.client.event.RecipesUpdatedEvent event)
    • onServerStartedStatic

      public static void onServerStartedStatic(net.neoforged.neoforge.event.server.ServerStartedEvent event)
    • onClientTagsLoaded

      public void onClientTagsLoaded(net.neoforged.neoforge.event.TagsUpdatedEvent event)
    • onClientRecipesLoaded

      public void onClientRecipesLoaded(net.neoforged.neoforge.client.event.RecipesUpdatedEvent event)
    • onServerStarted

      public void onServerStarted(net.neoforged.neoforge.event.server.ServerStartedEvent event)
    • afterRecipesAndTagsLoaded

      public void afterRecipesAndTagsLoaded()