In Bukkit's API, there are two functions that show up as ambiguous when I try to call them
int getMaxHealth()
double getMaxHealth()
I can't figure out how to specify to the compiler which function I want to call. Instead of directly comparing like
if (getMaxHealth() < 40d) { /* Code */ }
I tried "directly" assigning the variable
double health = getMaxHealth();
However, both cases result in IntelliJ complaining that it is an ambiguous method. How can I fix this?