Contents
Class BlockHealth
java.lang.Object
com.hypixel.hytale.server.core.modules.blockhealth.BlockHealth
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()floatstatic booleanisDamaged(float health) Only a finite health strictly between destroyed and full is a damaged block.booleanstatic booleanisDestroyed(float health) voidsetHealth(float health) voidsetLastDamageGameTime(Instant lastDamageGameTime) toString()
-
Field Details
-
FULL_HEALTH
public static final float FULL_HEALTH- See Also:
-
CODEC
-
-
Constructor Details
-
BlockHealth
public BlockHealth() -
BlockHealth
-
-
Method Details
-
isDestroyed
public static boolean isDestroyed(float health) -
isDamaged
public static boolean isDamaged(float health) Only a finite health strictly between destroyed and full is a damaged block. NaN fails every comparison, so it is never damaged. -
getHealth
public float getHealth() -
setHealth
public void setHealth(float health) -
getLastDamageGameTime
-
setLastDamageGameTime
-
isDestroyed
public boolean isDestroyed() -
clone
-
toString
-