Posted November 30, 201410 yr I have a question i wanna make a item energy but dont know how to do it here is link to api https://github.com/CoFH/RedstoneFlux-API/blob/master/src/main/java/cofh/api/energy/ MAX power will be 100000000 RF transfer extract 10000 rf transfer recave 10000 rf
December 1, 201410 yr There is an example in the API that shows you how to do exactly that. I am the author of Draconic Evolution
December 1, 201410 yr Author guys i cant find example so if someone can help me at least witch one to chose and what to use so i can make it im actaky starting to program mods
December 1, 201410 yr Ok, This is the thing you should implement when you want to go on your own read the documentation above: https://github.com/CoFH/RedstoneFlux-API/blob/master/src/main/java/cofh/api/energy/IEnergyContainerItem.java should look like this: public class Battery extends Item implements IEnergyContainerItem{ } You will get a warning to implement the methods in your class. Just register it later as a normal Item. The example is this: https://github.com/CoFH/RedstoneFlux-API/blob/master/src/main/java/cofh/api/energy/ItemEnergyContainer.java You can extend this for experimental purpouse in your Item class.
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.