Package org.cyclops.cyclopscore.infobook
Class InfoBookRegistry
java.lang.Object
org.cyclops.cyclopscore.infobook.InfoBookRegistry
- All Implemented Interfaces:
IInfoBookRegistry
,org.cyclops.cyclopscore.init.IRegistry
Registry for info books for a mod.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Get the root of the given book.void
onClientRecipesLoaded
(net.neoforged.neoforge.client.event.RecipesUpdatedEvent event) static void
onClientRecipesLoadedStatic
(net.neoforged.neoforge.client.event.RecipesUpdatedEvent event) void
onClientTagsLoaded
(net.neoforged.neoforge.event.TagsUpdatedEvent event) static void
onClientTagsLoadedStatic
(net.neoforged.neoforge.event.TagsUpdatedEvent event) void
onServerStarted
(net.neoforged.neoforge.event.server.ServerStartedEvent event) static void
onServerStartedStatic
(net.neoforged.neoforge.event.server.ServerStartedEvent event) void
registerInfoBook
(IInfoBook infoBook, String path) Register a new infobook.void
registerSection
(ModBase<?> mod, IInfoBook infoBook, String parentSection, String sectionPath) Register a new section to the given section of the given infobook.
-
Constructor Details
-
InfoBookRegistry
public InfoBookRegistry()
-
-
Method Details
-
registerInfoBook
Description copied from interface:IInfoBookRegistry
Register a new infobook.- Specified by:
registerInfoBook
in interfaceIInfoBookRegistry
- 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 interfaceIInfoBookRegistry
- 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
Description copied from interface:IInfoBookRegistry
Get the root of the given book.- Specified by:
getRoot
in interfaceIInfoBookRegistry
- 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()
-