At the moment it looks like the analyzer and compound values are hard coded to be double.
I consider this somewhat risky, as some Minecraft players and mods LOVE huge numbers, which might result in weird float arithmetic errors down the line when adding small numbers to big numbers (which might be an interesting game mechanic on its own, but is probably not desired here).
I'd prefer something like BigFraction. So I'd recommend to not have it hard coded, but allow for the number type to be changeable without rewriting everything.
At the moment it looks like the analyzer and compound values are hard coded to be
double
.I consider this somewhat risky, as some Minecraft players and mods LOVE huge numbers, which might result in weird float arithmetic errors down the line when adding small numbers to big numbers (which might be an interesting game mechanic on its own, but is probably not desired here).
I'd prefer something like
BigFraction
. So I'd recommend to not have it hard coded, but allow for the number type to be changeable without rewriting everything.