MCPcopy Create free account
hub / github.com/Teneted/Tenet / setHealthScale

Method setHealthScale

src/main/java/org/bukkit/entity/Player.java:974–974  ·  view source on GitHub ↗

Sets the number to scale health to for the client; this will also #setHealthScaled(boolean) setHealthScaled(true). Displayed health follows a simple formula displayedHealth = getHealth() / getMaxHealth() getHealthScale() . @param scale the number to scale health to @throws I

(double scale)

Source from the content-addressed store, hash-verified

972 * @throws IllegalArgumentException if scale is too high
973 */
974 public void setHealthScale(double scale) throws IllegalArgumentException;
975
976 /**
977 * Gets the number that health is scaled to for the client.

Callers

nothing calls this directly

Implementers 1

CraftPlayersrc/main/java/org/bukkit/craftbukkit/v

Calls

no outgoing calls

Tested by

no test coverage detected