Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AI generated Javadoc #140

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

strubium
Copy link

@strubium strubium commented May 13, 2024

This PR:

  • Adds AI generated Javadoc

Why:

  • Wanted to use the AI lol
  • Theoretically makes code easier to work with

Notice: I have no idea how to test this! Could totally break everything! (Please teach me)

Copy link
Member

@Rongmario Rongmario left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments for the following classes are fine:

  • SplashProgress
  • DungeonHooks
  • CapabilityEnergy (partially, I've left comments)
  • IRenderHandler (partially, I've left comments)
  • MinecraftForgeClient (partially, I've left comments)

I wouldn't rely on AI for generating javadocs especially in and around Minecraft and Forge code, as it wouldn't have enough context. As you can see, a lot of it are redundant and verbose, especially for methods that are self-explanatory.

I've kept some docs that does help clarify things, please amend and we'll look to pull this in.

strubium and others added 10 commits May 14, 2024 12:11
Ecdcaeb's suggestion

Co-authored-by: Hileb <107909747+Ecdcaeb@users.noreply.github.com>
number 2!

Co-authored-by: Hileb <107909747+Ecdcaeb@users.noreply.github.com>
number 3!

Co-authored-by: Hileb <107909747+Ecdcaeb@users.noreply.github.com>
Co-authored-by: Hileb <107909747+Ecdcaeb@users.noreply.github.com>
Co-authored-by: Hileb <107909747+Ecdcaeb@users.noreply.github.com>
@strubium strubium requested a review from Rongmario May 14, 2024 22:10
@strubium strubium requested a review from Rongmario May 15, 2024 14:48
strubium and others added 2 commits May 17, 2024 11:11
…java

Co-authored-by: Hileb <107909747+Ecdcaeb@users.noreply.github.com>
Co-authored-by: Hileb <107909747+Ecdcaeb@users.noreply.github.com>
@strubium strubium requested a review from Ecdcaeb June 6, 2024 19:55
@@ -26,14 +26,32 @@

import javax.annotation.Nonnull;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FluidContainerColorer is not a api. No java docs is needed here.

@@ -26,8 +26,17 @@
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ForgeClientHandler is not a api. No java docs is needed here.

public static BlockRenderLayer getRenderLayer()
{
return ForgeHooksClient.renderLayer.get();
}

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont delete it!

@@ -72,14 +69,6 @@ public static Locale getLocale()
stencilBits.set(0,8);
}

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont delete it!

@@ -25,16 +25,35 @@
import java.io.File;
import java.util.Map.Entry;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GuiDupesFound is not a API, java doc is not needed.

@@ -21,15 +21,33 @@

import net.minecraft.network.datasync.DataSerializer;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for such complicated Java doc

strubium and others added 4 commits June 14, 2024 13:43
Co-authored-by: Hileb <107909747+Ecdcaeb@users.noreply.github.com>
Co-authored-by: Hileb <107909747+Ecdcaeb@users.noreply.github.com>
Co-authored-by: Hileb <107909747+Ecdcaeb@users.noreply.github.com>
…Data.java

Co-authored-by: Hileb <107909747+Ecdcaeb@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants