BlockHealth

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 float health

getLastDamageGameTime

public Instant getLastDamageGameTime ()

Method getLastDamageGameTime.

setLastDamageGameTime

public void setLastDamageGameTime (final Instant lastDamageGameTime)

Method setLastDamageGameTime.

Parameters:
final Instant lastDamageGameTime

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 ByteBuf buf
final byte version

serialize

public void serialize (@Nonnull final ByteBuf buf)

Method serialize.

Parameters:
@Nonnull final ByteBuf buf

clone

protected BlockHealth clone ()

Method clone.

toString

public String toString ()

Method toString.