Spigot spawn entity

World testWorld = Bukkit.getWorld("Hello World!");
Location spawnLocation = new Location(testWorld, 0, 20, 0);
Entity spawnedPig =
Read More

Divide with float java

//Just convert any one value to float

float resultValue = (float)firstValue / secondValue;
Read More