Jump to content

Forge API Documentation


biscuitWizard

Recommended Posts

Hey there!

 

Sorry for asking this on my first post, but why is there no forge/FML API documentation? I've searched the forums and looked around on google for some sort of documentation, but have turned up nothing. It kind of seems like a glaring misnomer to me, especially when modders should have some kind of unified documentation when working with an API.

 

At the moment, the code I'm working on steps on the toes of ItemBucket, ChunkProviderGenerator, World, and numerous WorldGen* files, and I know for a fact that isn't going to bode well for compatibility with other mods. Worse yet, I know there /are/ forge hooks around in the code, I've seen them, but they're scattered and undocumented. :| I'm really not sure what to make of this.

 

Is there some kind of documentation? Or is there some way to learn to ropes without needing to read through all of the forge code?

Link to comment
Share on other sites

The code is documented, read the code.

It is not possible to generate good javadoc html because we are working with decompiled Minecraft code.

99% of the documentation generated by running javadocs over MC would be jibberish.

Your best is is to read the code inside the forge package.

 

If someone wants to take it upon themselves to go through the code and document it on our wiki, then they are more then welcome to.

I am not going to do it because I do not write good :P

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

i know how daunting moving to forge is as a modder and now that i have done quite a bit with it id like to help people make that jump

 

EDIT: where would i put it? or can someone with permissions add Javadoc under the Advanced Tutorials link

Link to comment
Share on other sites

i know how daunting moving to forge is as a modder and now that i have done quite a bit with it id like to help people make that jump

 

EDIT: where would i put it? or can someone with permissions add Javadoc under the Advanced Tutorials link

 

I started modding with Forge included, so I never had to "move" to Forge. You should create a bunch of tutorials in the tutorial wiki from beginning on how to mod with Forge WITHOUT ModLoader. Your tutorials will get more views since it will be updated to the newest version of Forge which does not include ModLoader.

Link to comment
Share on other sites

Not particular, unless its a single commit that sweeps everything.

My spelling isn't THAT bad, you can understand all of my comments.

I typically don't accept grammar nazi PRs, esp if its just comments.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

LexManos =/

 

First of all, I'm not a grammar nazi.

Second, I enjoy well-written English the same way you enjoy well-written code. My intent isn't to make people feel miserable about having their writing corrected. It's to have a clear message on the Web. (For once of all places)

 

It's nothing personal. I don't care who the heck makes the mistakes, just that the result is neat.

Link to comment
Share on other sites

Hey guys!

 

Are you open to edits for grammar, clarity and the like?

I'd be doing that while absorbing the contents.

 

(Perhaps this will make some people less shy about contributing. =)

 

Also a grammar fix PR gave a compile error in the past. It's a case of 'if it aint broke, dont fix it'

Link to comment
Share on other sites

  • 11 months later...

I know this is a really old thread but I want to say that I agree completely that there needs to be some sort of documentation.  C# coding is my job and I've produced and worked with many API's.  In any API, there is literally no way to know how to use it without documentation.  I mean sure, you can spend hours upon hours staring at each class but as it was stated earlier there is even stuff in the base minecraft classes like Item and Block that you don't see unless you know to look.  I am new to MC modding and I've been working at it for a couple of weeks now trying to cling to little bits of information I've gleamed from videos and tutorials that I've found here and other places but it isn't a substitute for real documentation.  I know it's a pain but it's also good coding practice.

 

My example of why:  I created several new ores and such and have added tools for each of them.  Well the only way I found before to add to the EnumToolMaterial was to create my own class that mimics the behavior of EnumToolMaterial and set my own values.  This of course means to make the sword I have to extend ItemSword, or ItemPickaxe for the pickaxe tools and so on.  If I had known about the EnumHelper class before I wouldn't have had to go through that pain.  Again though, I just saw this in the little bit of produced documentation and I haven't had a chance to look into it.  It may not even do what I think it does.  Who knows?

 

So please, don't think I'm saying you're doing a bad job in any way.  I think what you've provided here is invaluable for the modding community.  My message is just that producing an API should always mean producing documentation on using that API.  Do with that information what you will. ;)

Link to comment
Share on other sites

1) Please don't necro YEAR old posts.

2) I am very bad at writing documentation. Tutorials, examples, etc..

Combine that with the fact that the Bulk of the code you're interacting with is decompiled Minecraft code. Nothing to do with Forge at all. Theres really no way I ca go through and document everything as 1) I don't know what some parts do exactly and 2) That would explode the patches so much for just documentation.

 

So, its up to the community. Make a nice place for resources to be posted. Those with the capability create good tutorials and point users in the right direction.

Almost everything that Forge adds directly is either documented fairly well, or self explanatory. But as I said i'm bad at it.

Yes I to have worked with many different APIs and codebases in my years of programming. On both sides of the spectrum, worse then we have and better then we have. I find that the best tool a programmer can have is his ability to understand code. Not his ability to read or write it, his ability to UNDERSTAND it. The mind that can consume the code and understand what its doing and how it's doing it. Being able to be your own documentation is good. Not an excuse for lacking documentation, but meh.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • OLXTOTO - Bandar Togel Online Dan Slot Terbesar Di Indonesia OLXTOTO telah lama dikenal sebagai salah satu bandar online terkemuka di Indonesia, terutama dalam pasar togel dan slot. Dengan reputasi yang solid dan pengalaman bertahun-tahun, OLXTOTO menawarkan platform yang aman dan andal bagi para penggemar perjudian daring. DAFTAR OLXTOTO DISINI DAFTAR OLXTOTO DISINI DAFTAR OLXTOTO DISINI Beragam Permainan Togel Sebagai bandar online terbesar di Indonesia, OLXTOTO menawarkan berbagai macam permainan togel. Mulai dari togel Singapura, togel Hongkong, hingga togel Sidney, pemain memiliki banyak pilihan untuk mencoba keberuntungan mereka. Dengan sistem yang transparan dan hasil yang adil, OLXTOTO memastikan bahwa setiap taruhan diproses dengan cepat dan tanpa keadaan. Slot Online Berkualitas Selain togel, OLXTOTO juga menawarkan berbagai permainan slot online yang menarik. Dari slot klasik hingga slot video modern, pemain dapat menemukan berbagai opsi permainan yang sesuai dengan preferensi mereka. Dengan grafis yang memukau dan fitur bonus yang menggiurkan, pengalaman bermain slot di OLXTOTO tidak akan pernah membosankan. Keamanan dan Kepuasan Pelanggan Terjamin Keamanan dan kepuasan pelanggan merupakan prioritas utama di OLXTOTO. Mereka menggunakan teknologi enkripsi terbaru untuk melindungi data pribadi dan keuangan para pemain. Tim dukungan pelanggan yang ramah dan responsif siap membantu pemain dengan setiap pertanyaan atau masalah yang mereka hadapi. Promosi dan Bonus Menarik OLXTOTO sering menawarkan promosi dan bonus menarik kepada para pemainnya. Mulai dari bonus selamat datang hingga bonus deposit, pemain memiliki kesempatan untuk meningkatkan kemenangan mereka dengan memanfaatkan berbagai penawaran yang tersedia. Penutup Dengan reputasi yang solid, beragam permainan berkualitas, dan komitmen terhadap keamanan dan kepuasan pelanggan, OLXTOTO tetap menjadi salah satu pilihan utama bagi para pecinta judi online di Indonesia. Jika Anda mencari pengalaman berjudi yang menyenangkan dan terpercaya, OLXTOTO layak dipertimbangkan.
    • I have been having a problem with minecraft forge. Any version. Everytime I try to launch it it always comes back with error code 1. I have tried launching from curseforge, from the minecraft launcher. I have also tried resetting my computer to see if that would help. It works on my other computer but that one is too old to run it properly. I have tried with and without mods aswell. Fabric works, optifine works, and MultiMC works aswell but i want to use forge. If you can help with this issue please DM on discord my # is Haole_Dawg#6676
    • Add the latest.log (logs-folder) with sites like https://paste.ee/ and paste the link to it here  
    • I have no idea how a UI mod crashed a whole world but HUGE props to you man, just saved me +2 months of progress!  
    • So i know for a fact this has been asked before but Render stuff troubles me a little and i didnt find any answer for recent version. I have a custom nausea effect. Currently i add both my nausea effect and the vanilla one for the effect. But the problem is that when I open the inventory, both are listed, while I'd only want mine to show up (both in the inv and on the GUI)   I've arrived to the GameRender (on joined/net/minecraft/client) and also found shaders on client-extra/assets/minecraft/shaders/post and client-extra/assets/minecraft/shaders/program but I'm lost. I understand that its like a regular screen, where I'd render stuff "over" the game depending on data on the server, but If someone could point to the right client and server classes that i can read to see how i can manage this or any tip would be apreciated
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.