Skip to content
Ivorius edited this page May 10, 2015 · 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 RCCommunicationHandler. To find out how to send FMLIntermodComm messages, please refer to the class itself

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 in the correct directories, e.g.

  • assets/modid/structures/active
  • assets/modid/structures/inactive
  • assets/modid/structures/inventoryGenerators

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
Clone this wiki locally