Skip to content

Some javadoc improvements#5114

Open
Kilip1000 wants to merge 23 commits intoFabricMC:1.21.11from
mcgambing:1.21.11
Open

Some javadoc improvements#5114
Kilip1000 wants to merge 23 commits intoFabricMC:1.21.11from
mcgambing:1.21.11

Conversation

@Kilip1000
Copy link
Contributor

No description provided.

@Kilip1000
Copy link
Contributor Author

Yeah, for some reason I can't put paragraphs because of checkstyle demanding the previous line to be empty, but if it is, it doesn't pick up on it

@sylv256
Copy link
Member

sylv256 commented Jan 1, 2026

Yeah, for some reason I can't put paragraphs because of checkstyle demanding the previous line to be empty, but if it is, it doesn't pick up on it

Did you remove the space on the previous line?

@Kilip1000
Copy link
Contributor Author

Yeah, for some reason I can't put paragraphs because of checkstyle demanding the previous line to be empty, but if it is, it doesn't pick up on it

Did you remove the space on the previous line?

I did, yes, I even Ctrl F-ed it to make sure

@Kilip1000 Kilip1000 marked this pull request as draft January 1, 2026 01:59
@Kilip1000 Kilip1000 marked this pull request as ready for review January 1, 2026 06:31
@Kilip1000
Copy link
Contributor Author

Ah, yes status code 403 from server: Forbidden

* <p>Here is an example for a recipe remainder that increments the item's damage.
* <p>For example, using a lava bucket in a furnace as fuel will leave an empty bucket.
*
* <p>
Copy link
Contributor

Choose a reason for hiding this comment

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

For consistency, this should probably be merged into the bottom line, i.e. <p> ...

* Return false to filter out quads from rendering. When more than one transform
* is in effect, returning false means unapplied transforms will not receive the quad.
* Return {@code false} to filter out quads from rendering. When more than one transform
* is in effect, returning {@code false} means unapplied transforms will not receive the quad.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is @return not applicable in interface methods?

* @param slot the slot
* @param count the item count
* @return a stack
* @return the removed stack with count {@code count} or {@link ItemStack#EMPTY} if query is invalid
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to define what qualifies as an invalid query?


/**
* Return false if calling {@link #extract} will absolutely always return 0, or true otherwise or in doubt.
* Return {@code false} if calling {@link #extract} will absolutely always return 0, or {@code true} otherwise or in doubt.
Copy link
Contributor

Choose a reason for hiding this comment

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

@return


/**
* Return false if calling {@link #insert} will absolutely always return 0, or true otherwise or in doubt.
* Return {@code false} if calling {@link #insert} will absolutely always return 0, or {@code true} otherwise or in doubt.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Return {@code false} if calling {@link #insert} will absolutely always return 0, or {@code true} otherwise or in doubt.
* @return {@code false} if calling {@link #insert} will absolutely always return 0, or {@code true} otherwise or in doubt.

Comment on lines 39 to -45
* Returns the invoker instance.
*
* <p>An "invoker" is an object which hides multiple registered
* listeners of type T under one instance of type T, executing
* listeners of type {@code T} under one instance of type {@code T}, executing
* them and leaving early as necessary.
*
* @return The invoker instance.
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO keep the @return and remove the above statement that says "Returns the invoker instance."


/**
* Returns true if this biome contains a placed feature referencing a configured feature with the given key.
* Returns {@code true} if this biome contains a placed feature referencing a configured feature with the given key.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Returns {@code true} if this biome contains a placed feature referencing a configured feature with the given key.
* @return {@code true} if this biome contains a placed feature referencing a configured feature with the given key.


/**
* Returns true if the configured structure with the given key can start in this biome in any chunk generator
* Returns {@code true} if the configured structure with the given key can start in this biome in any chunk generator
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Returns {@code true} if the configured structure with the given key can start in this biome in any chunk generator
* @return {@code true} if the configured structure with the given key can start in this biome in any chunk generator


/**
* Returns true if the given biome can generate in the nether, considering the Vanilla nether biomes,
* Returns {@code true} if the given biome can generate in the nether, considering the Vanilla nether biomes,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Returns {@code true} if the given biome can generate in the nether, considering the Vanilla nether biomes,
* @return {@code true} if the given biome can generate in the nether, considering the Vanilla nether biomes,

@Kilip1000
Copy link
Contributor Author

Also, to all of the feedback relating to returns, I'd like to keep this minimal, not focusing on returns at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants