New Studio Map Command

- Allows you to see a map of a world/pack (without being in the world)
- Chooses a random color for each biome if no color is chosen, based on vanilla derivative 

Dev note: 
- The biome at your cursor is not accurate when zoomed out
This commit is contained in:
StrangeOne101 committed 2021-07-15 17:52:20 +12:00
1 parent c54a849243
commit ad6b746124
8 files changed
+138 -83

No files matched your search

@@ -130,6 +130,11 @@ public class RandomColor {
random.setSeed(seed);
}
public RandomColor(Random random) {
loadColorBounds();
this.random = random;
}
private int getColor(int hue, int saturation, int brightness) {
return java.awt.Color.getHSBColor((float)(hue + hueOffset % 360) / 360, (float)saturation / 100, (float)brightness / 100).getRGB();
}