Skip to content

Release 1.20.0#550

Merged
tastybento merged 16 commits intomasterfrom
develop
Apr 27, 2026
Merged

Release 1.20.0#550
tastybento merged 16 commits intomasterfrom
develop

Conversation

@tastybento
Copy link
Copy Markdown
Member

No description provided.

tastybento and others added 11 commits April 7, 2026 03:57
Cover previously-untested branches: shouldGenerateStructures,
shouldGenerateMobs, and BiomeProvider.getBiomes across all three
environments. Verify the IslandAboutCommand return value and the two
license lines that weren't asserted.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Main:
- BSkyBlock: drop unused WorldType import; extract applySpawnLimits
  to reduce getWorld cognitive complexity.
- Settings: mark deprecated flag/setting maps with @deprecated
  (forRemoval) to match the parent interface.
- ChunkGeneratorWorld: replace nested ternaries with a switch-based
  defaultBiomeFor helper; split makeNetherRoof into smaller methods
  (fillRoofColumn, placeGlowstoneBlob and friends) to drop its
  cognitive complexity well under the threshold.

Tests:
- Drop JUnit 5 public modifiers across SettingsTest, BSkyBlockTest,
  ChunkGeneratorWorldTest, and IslandAboutCommandTest.
- IslandAboutCommandTest: remove useless eq(...) matchers.
- CommonTestSetup: replace deprecated FixedMetadataValue with a mock,
  delete commented-out lines, and suppress unavoidable deprecation
  warnings around PlayerDeathEvent.
- TestWorldSettings: silence removal warnings on the deprecated
  WorldSettings overrides.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…E.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates BSkyBlock for the 1.20.0 release by aligning generator behavior and tests with newer Paper/Bukkit APIs, refreshing locale formatting, and tightening up test code warnings/visibility.

Changes:

  • Migrates ChunkGeneratorWorld to newer generation hooks (generateNoise, getDefaultBiomeProvider, updated shouldGenerateStructures signature) and refactors nether-roof generation helpers.
  • Updates multiple locale sign lines from legacy &c formatting to <red>…</red>-style tags.
  • Modernizes/cleans up tests (JUnit 5 visibility, deprecation/removal suppressions, updated generator tests) and updates the about/copyright output.

Reviewed changes

Copilot reviewed 32 out of 32 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/test/java/world/bentobox/bskyblock/TestWorldSettings.java Suppresses removal warnings for deprecated API-compat methods in tests.
src/test/java/world/bentobox/bskyblock/SettingsTest.java Makes JUnit 5 test class/methods package-private.
src/test/java/world/bentobox/bskyblock/generators/ChunkGeneratorWorldTest.java Updates generator tests to generateNoise/BiomeProvider API and adds coverage for new hooks.
src/test/java/world/bentobox/bskyblock/CommonTestSetup.java Adjusts test scaffolding (Sonar suppressions, metadata mocking).
src/test/java/world/bentobox/bskyblock/commands/IslandAboutCommandTest.java Updates assertions for new about output and validates return value.
src/test/java/world/bentobox/bskyblock/BSkyBlockTest.java Makes JUnit 5 test class package-private.
src/main/resources/locales/zh-TW.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/zh-CN.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/vi.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/tr.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/ru.yml Updates RU sign text and formatting tags.
src/main/resources/locales/ro.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/pt.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/pl.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/nl.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/lv.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/ko.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/ja.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/it.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/id.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/hu.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/fr.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/es.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/en-US.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/de.yml Updates sign color formatting to <red>…</red>.
src/main/resources/locales/cs.yml Updates sign line3 formatting.
src/main/resources/addon.yml Bumps declared BentoBox addon api-version.
src/main/java/world/bentobox/bskyblock/Settings.java Improves deprecation metadata/docs for API compatibility methods.
src/main/java/world/bentobox/bskyblock/generators/ChunkGeneratorWorld.java Migrates generator implementation to modern APIs; refactors nether-roof logic.
src/main/java/world/bentobox/bskyblock/commands/IslandAboutCommand.java Updates about/copyright line output.
src/main/java/world/bentobox/bskyblock/BSkyBlock.java Extracts spawn-limit application to a helper method.
CLAUDE.md Adds dependency source lookup/project layout documentation for contributors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/world/bentobox/bskyblock/generators/ChunkGeneratorWorld.java Outdated
Comment thread src/main/resources/locales/ru.yml Outdated
tastybento and others added 5 commits April 13, 2026 21:18
Updated image source for BSkyBlock in README.
…orWorld.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Prepend \${argLine} to Surefire's argLine so JaCoCo's prepare-agent goal
can inject its -javaagent flag. Also upgrade JaCoCo 0.8.10 → 0.8.13 to
handle Java 25 class files generated by Mockito inline mocks on JDK 25.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@tastybento tastybento merged commit afce4a3 into master Apr 27, 2026
4 checks passed
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.

2 participants