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: Menikmati Sensasi Bermain Togel dan Slot dengan Aman dan Mengasyikkan   Dunia perjudian daring terus berkembang dengan cepat, dan salah satu situs yang telah menonjol dalam pasar adalah OLXTOTO. Sebagai platform resmi untuk permainan togel dan slot, OLXTOTO telah memenangkan kepercayaan banyak pemain dengan menyediakan pengalaman bermain yang aman, adil, dan mengasyikkan.   Keamanan Sebagai Prioritas Utama   Salah satu aspek utama yang membuat OLXTOTO begitu menonjol adalah komitmennya terhadap keamanan pemain. Dengan menggunakan teknologi enkripsi terkini, situs ini memastikan bahwa semua informasi pribadi dan keuangan para pemain tetap aman dan terlindungi dari akses yang tidak sah.   Beragam Permainan yang Menarik   Di OLXTOTO, pemain dapat menemukan beragam permainan yang menarik untuk dinikmati. Mulai dari permainan klasik seperti togel hingga slot modern dengan fitur-fitur inovatif, ada sesuatu untuk setiap selera dan preferensi. Grafik yang memukau dan efek suara yang mengagumkan menambah keseruan setiap putaran. Peluang Menang yang Tinggi   Salah satu hal yang paling menarik bagi para pemain adalah peluang menang yang tinggi yang ditawarkan oleh OLXTOTO. Dengan pembayaran yang adil dan peluang yang setara bagi semua pemain, setiap taruhan memberikan kesempatan nyata untuk memenangkan hadiah besar.   Layanan Pelanggan yang Responsif   Tim layanan pelanggan OLXTOTO siap membantu para pemain dengan setiap pertanyaan atau masalah yang mereka hadapi. Dengan layanan yang ramah dan responsif, pemain dapat yakin bahwa mereka akan mendapatkan bantuan yang mereka butuhkan dengan cepat dan efisien.   Kesimpulan   OLXTOTO telah membuktikan dirinya sebagai salah satu situs terbaik untuk penggemar togel dan slot online. Dengan fokus pada keamanan, beragam permainan yang menarik, peluang menang yang tinggi, dan layanan pelanggan yang luar biasa, tidak mengherankan bahwa situs ini telah menjadi pilihan utama bagi banyak pemain.   Jadi, jika Anda mencari pengalaman bermain yang aman, adil, dan mengasyikkan, jangan ragu untuk bergabung dengan OLXTOTO hari ini dan rasakan sensasi kemenangan!      
    • i notice a change if i add the min and max ram in the line like this for example:    # Xmx and Xms set the maximum and minimum RAM usage, respectively. # They can take any number, followed by an M or a G. # M means Megabyte, G means Gigabyte. # For example, to set the maximum to 3GB: -Xmx3G # To set the minimum to 2.5GB: -Xms2500M # A good default for a modded server is 4GB. # Uncomment the next line to set it. -Xmx10240M -Xms8192M    i need to make more experiments but for now this apparently works.
    • Selamat datang di OLXTOTO, situs slot gacor terpanas yang sedang booming di industri perjudian online. Jika Anda mencari pengalaman bermain yang luar biasa, maka OLXTOTO adalah tempat yang tepat untuk Anda. Dapatkan sensasi tidak biasa dengan variasi slot online terlengkap dan peluang memenangkan jackpot slot maxwin yang sering. Di sini, Anda akan merasakan keseruan yang luar biasa dalam bermain judi slot. DAFTAR OLXTOTO DISINI LOGIN OLXTOTO DISINI AKUN PRO OLXTOTO DISINI   Slot Gacor untuk Sensasi Bermain Maksimal Olahraga cepat dan seru dengan slot gacor di OLXTOTO. Rasakan sensasi bermain maksimal dengan mesin slot yang memberikan kemenangan beruntun. Temukan keberuntungan Anda di antara berbagai pilihan slot gacor yang tersedia dan rasakan kegembiraan bermain judi slot yang tak terlupakan. Situs Slot Terpercaya dengan Pilihan Terlengkap OLXTOTO adalah situs slot terpercaya yang menawarkan pilihan terlengkap dalam perjudian online. Nikmati berbagai genre dan tema slot online yang menarik, dari slot klasik hingga slot video yang inovatif. Dipercaya oleh jutaan pemain, OLXTOTO memberikan pengalaman bermain yang aman dan terjamin.   Jackpot Slot Maxwin Sering Untuk Peluang Besar Di OLXTOTO, kami tidak hanya memberikan hadiah slot biasa, tapi juga memberikan kesempatan kepada pemain untuk memenangkan jackpot slot maxwin yang sering. Dengan demikian, Anda dapat meraih keberuntungan besar dan memenangkan ribuan rupiah sebagai hadiah jackpot slot maxwin kami. Jackpot slot maxwin merupakan peluang besar bagi para pemain judi slot untuk meraih keuntungan yang lebih besar. Dalam permainan kami, Anda tidak harus terpaku pada kemenangan biasa saja. Kami hadir dengan jackpot slot maxwin yang sering, sehingga Anda memiliki peluang yang lebih besar untuk meraih kemenangan besar dengan hadiah yang menggiurkan. Dalam permainan judi slot, pengalaman bermain bukan hanya tentang keseruan dan hiburan semata. Kami memahami bahwa para pemain juga menginginkan kesempatan untuk meraih keberuntungan besar. Oleh karena itu, OLXTOTO hadir dengan jackpot slot maxwin yang sering untuk memberikan peluang besar kepada para pemain kami. Peluang Besar Menang Jackpot Slot Maxwin Peluang menang jackpot slot maxwin di OLXTOTO sangatlah besar. Anda tidak perlu khawatir tentang batasan atau pembatasan dalam meraih jackpot tersebut. Kami ingin memberikan kesempatan kepada semua pemain kami untuk merasakan sensasi menang dalam jumlah yang luar biasa. Jackpot slot maxwin kami dibuka untuk semua pemain judi slot di OLXTOTO. Anda memiliki peluang yang sama dengan pemain lainnya untuk memenangkan hadiah jackpot yang besar. Kami percaya bahwa semua orang memiliki kesempatan untuk meraih keberuntungan besar, dan itulah mengapa kami menyediakan jackpot slot maxwin yang sering untuk memenuhi harapan dan keinginan Anda.  
    • LOGIN DAN DAFTAR DISINI SEKARANG !!!! Blacktogel adalah situs judi slot online yang menjadi pilihan banyak penggemar judi slot gacor di Indonesia. Dengan platform yang sangat user-friendly dan berbagai macam permainan slot yang tersedia, Blacktogel menjadi tempat yang tepat untuk penggemar judi slot online. Dalam artikel ini, kami akan membahas tentang Blacktogel dan keunggulan situs slot gacor online yang disediakan.  
    • Situs bandar slot online Gacor dengan bonus terbesar saat ini sedang menjadi sorotan para pemain judi online. Dengan persaingan yang semakin ketat dalam industri perjudian online, pemain mencari situs yang tidak hanya menawarkan permainan slot yang gacor (sering memberikan kemenangan), tetapi juga bonus terbesar yang bisa meningkatkan peluang menang. Daftar disini : https://gesit.io/googlegopek
  • Topics

×
×
  • Create New...

Important Information

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