java.lang.Object
com.hypixel.hytale.server.core.modules.blockhealth.BlockHealth
All Implemented Interfaces:
Cloneable

public class BlockHealth extends Object implements Cloneable
  • Field Details

    • NO_DAMAGE_INSTANCE

      public static final BlockHealth NO_DAMAGE_INSTANCE
    • health

      private float health
    • lastDamageGameTime

      private Instant lastDamageGameTime
  • Constructor Details

    • BlockHealth

      public BlockHealth()
    • BlockHealth

      public BlockHealth(float health, Instant lastDamageGameTime)
  • Method Details

    • getHealth

      public float getHealth()
    • setHealth

      public void setHealth(float health)
    • getLastDamageGameTime

      public Instant getLastDamageGameTime()
    • setLastDamageGameTime

      public void setLastDamageGameTime(Instant lastDamageGameTime)
    • isDestroyed

      public boolean isDestroyed()
    • isFullHealth

      public boolean isFullHealth()
    • deserialize

      public void deserialize(@Nonnull io.netty.buffer.ByteBuf buf, byte version)
    • serialize

      public void serialize(@Nonnull io.netty.buffer.ByteBuf buf)
    • clone

      @Nonnull protected BlockHealth clone()
      Overrides:
      clone in class Object
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object