BiomeNMS now stores a NamespacedKey key instead of a String name, for proper biome key handling/parsing.
BiomeNMS#getName has been replaced by getKey.
All relevant places changed to take/use NamespacedKeys instead of Strings, with Utilities#namespacedKeyToString to stringify where needed & CraftNamespacedKey for NMS conversions.
[!NOTE]
Might be a good idea to have a cache of Utilities#namespacedKeyToString on BiomeNMS, just because it's used a bunch to get the "display name"? it's not a particularly heavy operation or anything though, so lmk what do you think.
Reported on Discord.
Changes
BiomeNMS
now stores aNamespacedKey key
instead of aString name
, for proper biome key handling/parsing.BiomeNMS#getName
has been replaced bygetKey
.NamespacedKey
s instead ofString
s, withUtilities#namespacedKeyToString
to stringify where needed &CraftNamespacedKey
for NMS conversions.