-
Notifications
You must be signed in to change notification settings - Fork 189
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
Sdev/javadocs #2674
base: 1.20.1
Are you sure you want to change the base?
Sdev/javadocs #2674
Conversation
It's bad form and I'm eepy so I did this earlier
This took so long I'm dying
These are getting harder 😭
All I'm going for now. A lot of the docs are copy-paste
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Good, just run formatting and we can merge it 👍
src/main/java/com/gregtechceu/gtceu/api/block/MaterialBlock.java
Outdated
Show resolved
Hide resolved
src/main/java/com/gregtechceu/gtceu/api/block/MaterialPipeBlock.java
Outdated
Show resolved
Hide resolved
To appease the Tech22
@@ -71,7 +70,7 @@ public static BlockColor tintedColor() { | |||
return pipe.getFrameMaterial().getMaterialSecondaryRGB(); | |||
} | |||
} | |||
if (pipe.isPainted()) { | |||
else if (pipe.isPainted()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this shouldn't be an else if, it should fall through to this if the frame material checks fail IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, spotless.
What
This PR adds a bunch of JavaDocs for functions that previously didn't have them, were unclear, or were outdated.
Implementation Details
When reviewing, I would look for my descriptions being proper, since some of them I had to figure out after reading the function's contents multiple times.
Outcome
Hopefully the readability will increase and help with future development.
Potential Compatibility Issues
I didn't change any variable names, instead leaving them as TODOs while I was working.
They can be removed in the future when they are either changed or rejected.