Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

zv_odd

Members
  • Joined

  • Last visited

  1. I totally understand what your saying, I just find it hard to believe there isn't a way ( that is already tooled and used by mc modders) to generate/export list of class names + function sigs. ^ 100% agree! 5% agree - It also makes plenty of sense for the collection of class names and signatures to be aggregated by some docgen tooling. Isn't that kinda one of the core purposes of JavaDoc? Does anyone know how to generate that from the decompiled MC source and ForgeMC?
  2. I absolutely tried running ` gradlew javadoc`, but as I said it only generated the docs for things declared in the ExampleMod package. Do you know, are there some arguments that I can pass to it to change the scope of document generation? As I'm really not that comfortable with the 2 main Java IDEs (I mostly use Sublime or VIM), I was really hoping I could generate some searchable reference of all the main "packages"( modules,?) names and there classes, methods and their signatures, so I could easily search and browse for useful stuff whilst experimenting. I'm not sure I really understand what you mean documentation can't be generated for a framework, it still has a collection of commented classes, methods, interfaces, etc. Seems like going through that with an AST and grabbing comments + signatures is a large part of what Java Doc does? IDK seems strange that the layout of a codebase into a framework ( i.e. rather than a complete main loop style application) should make much difference to that process. I guess I just assumed that there would be some of the same tooling that IDE's like eclipse use to generate auto completion & etc, would have some standard way for generating a html version of those "mappings". I have spent some time reading the forge code base on github - yeah that's an OK option, but there isn't a similar option for the decompiled Minecraft classes (obviously without comments) - which I also would also need to reference fairly regularly. Also, partially this desire was promoted by this weird problem I'm having where some of the classes from ForgeMC (forge-1.14.3-27.0.57-mdk - could be a version specific issue?) didn't seem to exist, specifically when I tried: import net.minecraftforge.common.config.Config; I got a compiler error saying it couldn't find that class/package. I was hoping to verify the package was actually there via the generated docs.
  3. Ok I get that `setupDecompWorkspace ` is depreciated and removed. I have a working setup in IntelliJ - happy launches MC with forge + example mod loaded. But I still have no idea how to generate MC / MCForge Java docs! Running the javadoc gradle task just creates docs for ExampleMod. Can any one please point me to a tutorial on how to generate API Docs for forge MC? I'm really not great with the Java environment, but i do write a lot of code in other languages, and it seems flipping crazy that the topic of "how to get A readable API reference" is not the #1 first step after "setup your build environment".
  4. So I am having a couple of problems whilst trying to get started with Forge. I Downloaded and extracted a nightly MDK forge build and tried following instructions from docs. `gradlew setupDecompWorkspace`does not appear to be a valid gradlew task. Having some issue with running gradle tasks from IntelliJ - wrong Java Version (I think i must have set import settings wrong) - I did manage to get it working on a previous try (reimport fixed this) I have no idea how to generate the API Java Docs so I can find my way around MC / MCForge and actually write code. Yes I tried gradle task Javadoc, but that just generate docs for the example Mod 1) Console printscreen - trying to run gradlew on a freshly unziped Forge mdk folder copy `forge-1.14.3-27.0.60-mdk.zip`: D:\Code\Gamedev\MCMOD\forge_mdk60_Simple λ set J JAVA_HOME=C:\Program Files\Java\jdk1.8.0_211 D:\Code\Gamedev\MCMOD\forge_mdk60_Simple λ gradlew setupDecompWorkspace To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.9/userguide/gradle_daemon.html. Daemon will be stopped at the end of the build stopping after processing > Configure project : New Dep: net.minecraftforge:forge:1.14.3-27.0.60_mapped_snapshot_20190719-1.14.3 FAILURE: Build failed with an exception. * What went wrong: Task 'setupDecompWorkspace' not found in root project 'forge_mdk60_Simple'. * Try: Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 5s D:\Code\Gamedev\MCMOD\forge_mdk60_Simple λ gradlew genIntellijRuns To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.9/userguide/gradle_daemon.html. Daemon will be stopped at the end of the build stopping after processing > Configure project : New Dep: net.minecraftforge:forge:1.14.3-27.0.60_mapped_snapshot_20190719-1.14.3 Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings BUILD SUCCESSFUL in 7s 4 actionable tasks: 4 executed D:\Code\Gamedev\MCMOD\forge_mdk60_Simple λ 2) See attached screen shot of IntelliJ - I had this issue before and then change IntellJ and my environment vars use Java 8 JDK, so I'm stupped as to why this is happening again. i.imgur.com/7N9OCFk.png 3) I am guessing `gradlew javadoc` would generate the docs if `gradlew setupDecompWorkspace` existed/succeeded. Any help would be much appreciated.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.