public class BlockHealth implements Cloneable
Class BlockHealth. Provides blockhealth functionality for the Hytale server.
java.lang.Object > BlockHealth
Field Summary
health
private
float
health
Field health.
lastDamageGameTime
private
Instant
lastDamageGameTime
Field lastDamageGameTime.
Method Detail
BlockHealth
public
public
BlockHealth
()
Method BlockHealth.
getHealth
public
float
getHealth
()
Method getHealth.
setHealth
public
void
setHealth
(final float health)
Method setHealth.
- Parameters:
final floathealth
getLastDamageGameTime
public
Instant
getLastDamageGameTime
()
Method getLastDamageGameTime.
setLastDamageGameTime
public
void
setLastDamageGameTime
(final Instant lastDamageGameTime)
Method setLastDamageGameTime.
- Parameters:
final InstantlastDamageGameTime
isDestroyed
public
boolean
isDestroyed
()
Method isDestroyed.
isFullHealth
public
boolean
isFullHealth
()
Method isFullHealth.
deserialize
public
void
deserialize
(@Nonnull final ByteBuf buf, final byte version)
Method deserialize.
- Parameters:
@Nonnull final ByteBufbuffinal byteversion
serialize
public
void
serialize
(@Nonnull final ByteBuf buf)
Method serialize.
- Parameters:
@Nonnull final ByteBufbuf
toString
public
String
toString
()
Method toString.