Biome baseTemperature API #10512
Replies: 2 comments 3 replies
-
Do you know where the base temperatures are? Your image of the wiki is dead and the list on https://minecraft.wiki/w/Biome#List_of_biome_climates is empty. If you have a class name, even better. |
Beta Was this translation helpful? Give feedback.
-
Looking into the code I don't think it makes sense to address this functionality before we converted the Biome enum to a class (I think this is going to happen). Right now, you cannot directly add this method to Biome (without hardcoding every value to every biome) so you would have to add it to World. And this is ugly considering its just a temporary "fix" until we get BiomeType. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem?
It is currently impossible to get the base temperature of a vanilla Biome from its enum type.
These are hardcoded values used by the internals of the server that are however not exposed through the API.
As specified by the Minecraft Game Wiki:
Describe the solution you'd like.
A method into the API that is not bound and influenced by height parameters or data instances such as World or Block.
It would be something like double Biome#getBaseTemperature().
Describe alternatives you've considered.
The current only alternative I have found for this issue is to use NMS or Reflections, but it's not a long term solution and inclusive for more more than one version
Other
No response
Beta Was this translation helpful? Give feedback.
All reactions