Posted September 23, 20169 yr This is my second mod, and I want to use Forge Energy. Problem is, it's so new that I can't really find much documentation on it. So how do I do it?
September 23, 20169 yr Create an IEnergyStorage implementation (or use the default Forge one, EnergyStorage ), expose it via hasCapability and getCapability and use it the same way you'd use Tesla or RF using the receiveEnergy and extractEnergy methods. Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
December 31, 20168 yr What Shadows said, and for start you might want to extend default EnergyStorage to implement energy extractors and energy providers. Then store these objects in your tile entities and provide them in mentioned methods.
January 5, 20178 yr What is the difference in extending EnergyStorage or IEnergyStorage? http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
January 5, 20178 yr What is the difference in extending EnergyStorage or IEnergyStorage? Extending EnergyStorage allows you to add custom method logic to specific methods without having to code the entire class. While implementing IEnergyStorage requires you to override all the methods and "add" logic to them. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
January 9, 20178 yr whats is the best ? That depends on what you want your TE to do. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
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.