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

    • AGENSLOT77 dikenal sebagai salah satu situs judi slot gacor terpercaya. Istilah "gacor" merujuk pada mesin slot yang sering memberikan kemenangan kepada pemainnya. Dengan koleksi permainan slot yang beragam dan canggih, AGENSLOT77 memberikan kesempatan besar bagi para pemain untuk meraih kemenangan yang menggiurkan. 2. Slot88 Terpercaya Slot88 merupakan salah satu permainan slot paling populer di AGENSLOT77. Dengan desain yang menawan dan pembayaran yang besar, Slot88 menjadi favorit di antara pemain judi online. Malam ini, para pemain dapat menikmati berbagai permainan Slot88 yang menarik dan menguntungkan di AGENSLOT77. 3. Peluang Maxwin Malam Ini AGENSLOT77 menawarkan peluang Maxwin yang menarik, terutama malam ini. Dengan fitur yang mudah dimengerti dan diakses, pemain memiliki kesempatan besar untuk meraih kemenangan maksimum dalam setiap permainan yang mereka mainkan. Jadi, jangan lewatkan kesempatan untuk memenangkan hadiah besar di AGENSLOT77 malam ini!   ❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰  
    • Javatogel: Agen BO Terpercaya, Anti Sedot WC, 100% Real, Gampang Menang Dalam dunia perjudian online, menemukan agen yang dapat dipercaya adalah langkah penting untuk pen galaman berjudi yang aman dan menguntungkan. Salah satu agen yang mendapat kepercayaan tinggi dari para pemain adalah Javatogel. Mari kita telusuri lebih dalam mengenai apa yang membuat Javatogel menjadi pilihan utama bagi para pecinta togel. Javatogel: Agen BO Terpercaya                                   DAFTAR SEKARANG AKUN VIP MAXWIN
    • S1288POKER Rasakan sensasi bertaruh Mix Parlay yang tak terlupakan dengan bonus fantastis di situs judi terpercaya kami! Kami menawarkan bonus Mix Parlay terbesar di Asia dengan berbagai pilihan taruhan dan minimal deposit rendah. Dapatkan bonus hingga jutaan rupiah untuk taruhan Mix Parlay Anda dan nikmati keuntungan berlipat ganda.
    • Situs Akun Pro Peru adalah pilihan terbaik bagi Anda yang mencari situs terpercaya untuk bermain slot dan taruhan bola. Berikut adalah beberapa alasan mengapa Anda harus memilih Situs Akun Pro Peru: Slot Populer Kami menyajikan koleksi slot yang populer dan menarik dengan berbagai tema yang beragam. Dari slot klasik hingga slot video modern, setiap pemain dapat menemukan permainan favorit mereka dengan mudah. Taruhan Bola Terpercaya Selain slot, kami juga menyediakan taruhan bola dengan pasaran terlengkap dan odds yang kompetitif. Dengan berbagai pertandingan dan liga yang tersedia, Anda dapat menikmati pengalaman taruhan bola yang seru dan menguntungkan. Transaksi Mudah dengan Bank BTN Kami menyediakan layanan transaksi yang mudah dan aman melalui Bank BTN. Dengan dukungan dari sistem pembayaran yang terpercaya, Anda dapat melakukan deposit dan penarikan dana dengan cepat dan tanpa hambatan.  
    • Ngamenslot adalah pilihan terbaik bagi Anda yang mencari situs terpercaya untuk bermain slot dan taruhan bola. Berikut adalah beberapa alasan mengapa Anda harus memilih Ngamenslot: Kombinasi Slot & Bola Kami menyajikan kombinasi terbaik antara permainan slot yang seru dan taruhan bola yang menegangkan. Dengan pilihan permainan yang beragam, setiap pemain dapat menikmati pengalaman bermain yang unik dan menyenangkan. Transaksi Mudah melalui Bank Ekonomi Kami menyediakan layanan transaksi yang mudah dan aman melalui Bank Ekonomi. Dengan dukungan dari sistem pembayaran yang terpercaya, Anda dapat melakukan deposit dan penarikan dana dengan cepat dan tanpa hambatan. Terpercaya dan Terjamin Ngamenslot telah terbukti sebagai situs terpercaya dengan ribuan pemain yang puas. Kami mengutamakan keamanan dan kenyamanan para pemain, sehingga Anda dapat bermain dengan tenang dan fokus pada permainan.  
  • Topics

×
×
  • Create New...

Important Information

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