Posted January 24, 20169 yr I want to add powered items/blocks to my mod and I want to use RF from Cofh. How do I implement the api? I know how to do it for a jar file, but the api comes as a zip file with stuff in. I'm using Eclipse if that helps. The api is here: https://github.com/CoFH/RedstoneFlux-API
January 24, 20169 yr Propably the easiest way is to clone/fork the github repository, and save it localy on your computer. The next step is creating a new project in eclipse with the folder of the cloned repository as main directory. When you got that setup, you only need to refer it as a dependency in eclipse and in the gradle file! Instead of saving a cloned repository, you can unpack the zipfile instead and do the same things as described above. Though updating the API is a bit less easier this way. Projects: Discontinued: - N2ConfigAPI - Meachanical Crafting Table Latest: - CollectionUtils Coöperations: - InGameConfigManager
January 24, 20169 yr Author Isn't the point of an API so you don't have to update it? So that you update the api and not the mod using the api
January 24, 20169 yr If your mod requires another mod that embeds the RF API (e.g. CoFHCore, BuildCraft) or RF is an optional feature (i.e. you use @Optional.Interface to strip the interfaces when they're not present), you can put the API's source code in src/api/java (so you have src/api/java/cofh/api/CoFHAPIProps.java). This will compile your mod against these classes without including them in your mod's JAR. If your mod is standalone, put the API in src/main/java instead. This will include the classes in your mod's JAR. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.