Utils
/**
* Creates a spherical explosion with specified parameters and returns the blocks broken.
*
* @param p The player initiating the explosion.
* @param b The block where the explosion originates.
* @param radius The radius of the explosion.
* @param affectAutosell Whether to affect autosell.
* @param sound Whether to play explosion sound.
* @return The blocks broken.
*/
public double createSphereExplosion(Player p, Block b, int radius, boolean affectAutosell, boolean sound) {
// Method implementation
}
/**
* Creates a natural-style explosion with specified parameters and returns the blocks broken.
*
* @param p The player initiating the explosion.
* @param b The block where the explosion originates.
* @param radius The radius of the explosion.
* @param affectAutosell Whether to affect autosell.
* @param sound Whether to play explosion sound.
* @return The blocks broken.
*/
public double createNaturalExplosion(Player p, Block b, int radius, boolean affectAutosell, boolean sound) {
// Method implementation
}
/**
* Converts a number to a single notation string representation.
*
* @param num The number to convert.
* @return The single notation string representation.
*/
public String singleNotation(double num) {
// Method implementation
}
/**
* Converts a number to an abbreviated notation string representation.
*
* @param num The number to convert.
* @return The abbreviated notation string representation.
*/
public String abbreviatedNotation(double num) {
// Method implementation
}
Last updated