You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ivorius edited this page Oct 10, 2017
·
18 revisions
If you want information about the mod's functionality itself, look up the wiki.
This page is a guide for using Recurrent Complex as a dependency.
Light dependency
Using RC as a light dependency means that it will work without RC being installed, but if it is installed, your mod can take advantage of it.
There is a number of communication messages you can send RC - all found and documented in RCCommunicationAdapter. The messages are pre-implemented for you here.
RC will also automatically search any existing mods for structure files and similar, and register them in the registry without you having to add a single line of code.
You simply need to have Recurrent Complex installed, and place your structures and other resources in the correct directories, i.e.
assets/modid/structures/active
assets/modid/structures/inactive
They should be loaded by Recurrent Complex automatically. You can find more information about the directory structure here.
Hard dependency
If you plan to use RC as a hard dependency, these might be classes worth looking into:
StructureRegistry for registering and retrieving structures
GenericItemCollectionRegistry for registering and retrieving inventory generators
WorldGenStructures for generating a structure generically