-
Notifications
You must be signed in to change notification settings - Fork 506
Some javadoc improvements #5114
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
Open
Kilip1000
wants to merge
23
commits into
FabricMC:1.21.11
Choose a base branch
from
Kilip1000:1.21.11
base: 1.21.11
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+112
−115
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
7037ad5
Some @reurns and {@code true}
Kilip1000 534df53
fix
Kilip1000 15c3379
Fix some returns
Kilip1000 cf45e2a
finished the true refactors
Kilip1000 64a0b61
finished the false refactors
Kilip1000 6a417c7
returns
Kilip1000 9ee5a5c
fix
Kilip1000 e9542b6
fix
Kilip1000 68f5cba
fix?
Kilip1000 9a704d5
fix
Kilip1000 b161448
fix
Kilip1000 da84b16
fix
Kilip1000 a2b1390
weirdness
Kilip1000 2677bd0
more fixes
Kilip1000 e90c519
Less changes to return
Kilip1000 69832ef
some more undos
Kilip1000 0e64ada
last of the undos
Kilip1000 34e65ab
.
Kilip1000 5db8f28
Merge branch 'FabricMC:1.21.11' into 1.21.11
Kilip1000 362d61d
A bunch of changes to accommodate feedback
Kilip1000 5ca4d47
tests?
Kilip1000 0518084
better description
Kilip1000 c971aae
fix
Kilip1000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -43,7 +43,7 @@ public interface BiomeSelectionContext { | |||||
| Holder<Biome> getBiomeRegistryEntry(); | ||||||
|
|
||||||
| /** | ||||||
| * 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. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| */ | ||||||
| default boolean hasFeature(ResourceKey<ConfiguredFeature<?, ?>> key) { | ||||||
| List<HolderSet<PlacedFeature>> featureSteps = getBiome().getGenerationSettings().features(); | ||||||
|
|
@@ -60,7 +60,7 @@ default boolean hasFeature(ResourceKey<ConfiguredFeature<?, ?>> key) { | |||||
| } | ||||||
|
|
||||||
| /** | ||||||
| * Returns true if this biome contains a placed feature with the given key. | ||||||
| * Returns {@code true} if this biome contains a placed feature with the given {@linkplain ResourceKey key}. | ||||||
| */ | ||||||
| default boolean hasPlacedFeature(ResourceKey<PlacedFeature> key) { | ||||||
| List<HolderSet<PlacedFeature>> featureSteps = getBiome().getGenerationSettings().features(); | ||||||
|
|
@@ -89,9 +89,8 @@ default boolean hasPlacedFeature(ResourceKey<PlacedFeature> key) { | |||||
| * from this biomes feature list. | ||||||
| */ | ||||||
| Optional<ResourceKey<PlacedFeature>> getPlacedFeatureKey(PlacedFeature placedFeature); | ||||||
|
|
||||||
| /** | ||||||
| * 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 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| * used by the current world-save. | ||||||
| */ | ||||||
| boolean validForStructure(ResourceKey<Structure> key); | ||||||
|
|
||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -60,7 +60,7 @@ public static void addNetherBiome(ResourceKey<Biome> biome, Climate.ParameterPoi | |||||
| } | ||||||
|
|
||||||
| /** | ||||||
| * 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, | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| * and any biomes added to the Nether by mods. | ||||||
| */ | ||||||
| public static boolean canGenerateInNether(ResourceKey<Biome> biome) { | ||||||
|
|
||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
IMO keep the
@returnand remove the above statement that says "Returns the invoker instance."