DamageInfo

public class DamageInfo implements Packet

Class DamageInfo. Provides damageinfo functionality for the Hytale server.

java.lang.Object > DamageInfo

Field Summary

damageSourcePosition

public Vector3d damageSourcePosition

Field damageSourcePosition.

damageAmount

public float damageAmount

Field damageAmount.

damageCause

public DamageCause damageCause

Field damageCause.

obj

final DamageInfo obj

Field obj.

nullBits

final byte nullBits

Field nullBits.

damageCauseResult

final ValidationResult damageCauseResult

Field damageCauseResult.

copy

final DamageInfo copy

Field copy.

Method Detail

getId

public int getId ()

Method getId.

DamageInfo

public public DamageInfo ()

Method DamageInfo.

deserialize

static DamageInfo deserialize (@Nonnull final ByteBuf buf, final int offset)

Method deserialize.

Parameters:
@Nonnull final ByteBuf buf
final int offset

computeBytesConsumed

static int computeBytesConsumed (@Nonnull final ByteBuf buf, final int offset)

Method computeBytesConsumed.

Parameters:
@Nonnull final ByteBuf buf
final int offset

serialize

public void serialize (@Nonnull final ByteBuf buf)

Method serialize.

Parameters:
@Nonnull final ByteBuf buf

computeSize

public int computeSize ()

Method computeSize.

validateStructure

static ValidationResult validateStructure (@Nonnull final ByteBuf buffer, final int offset)

Method validateStructure.

Parameters:
@Nonnull final ByteBuf buffer
final int offset

clone

public DamageInfo clone ()

Method clone.

equals

public boolean equals (final Object obj)

Method equals.

Parameters:
final Object obj

hashCode

public int hashCode ()

Method hashCode.