Skip to content

Remove deprecated biome-related classes and methods. - #3629

Open
MattBDev wants to merge 2 commits into
v3from
refactor/v3/remove-deprecated-biome
Open

Remove deprecated biome-related classes and methods.#3629
MattBDev wants to merge 2 commits into
v3from
refactor/v3/remove-deprecated-biome

Conversation

@MattBDev

Copy link
Copy Markdown
Contributor

Overview

This PR removes deprecated biome-related classes and methods. Code that previously relied on these now uses direct biome type lookups.

  • Delete BiomeData, BiomeName, and Biomes (world.biome package) — all were @Deprecated for removal, with Biomes.findBiomeByName relying on outdated Levenshtein-distance fuzzy name matching instead of exact registry IDs.

Files Changes

  • The files BiomeData, BiomeName, and Biomes all were @Deprecated and removed
  • Removed the deprecated getData(BiomeType) method from BiomeRegistry
  • Removed the getData overrides from BukkitBiomeRegistry and NullBiomeRegistry
  • Switched PlotSetBiome from Biomes.findBiomeByName(...) to BiomeTypes.get(args[0].toLowerCase(Locale.ROOT))

Behavior change

The command /plot setbiome <name> for PlotSquared accepted misspelled/fuzzy names before this change. Fuzzy name matching was just catching single-character typos. The new behavior is now more consistent WorldEdit's /setbiome command which never did fuzzy matching. The tab-completion already steers users to the valid biome IDs, so users will typically never type out the entire biome name themselves. In theory, this change should be virtually invisible to the user.
I would consider adding the fuzzy matching back to the command out of scope for this PR since this behavior should have been consistent across all commands in the first place.

@MattBDev
MattBDev requested a review from a team as a code owner August 21, 2026 05:44
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.

1 participant