DamageData

public class DamageData

Class DamageData. Provides damagedata functionality for the Hytale server.

java.lang.Object > DamageData

Field Summary

maxDamageSuffered

private double maxDamageSuffered

Field maxDamageSuffered.

maxDamageInflicted

private double maxDamageInflicted

Field maxDamageInflicted.

mostPersistentAttacker

private Ref mostPersistentAttacker

Field mostPersistentAttacker.

mostDamagedVictim

private Ref mostDamagedVictim

Field mostDamagedVictim.

d

final double d

Field d.

ref

final Ref ref

Field ref.

playerComponent

final Player playerComponent

Field playerComponent.

playerSettingsComponent

final PlayerSettings playerSettingsComponent

Field playerSettingsComponent.

damageByEntity

final double damageByEntity

Field damageByEntity.

damageData

final DamageData damageData

Field damageData.

Method Detail

DamageData

public public DamageData ()

Method DamageData.

reset

public void reset ()

Method reset.

onInflictedDamage

public void onInflictedDamage (final Ref target, final double amount)

Method onInflictedDamage.

Parameters:
final Ref target
final double amount

onSufferedDamage

public void onSufferedDamage (@Nonnull final CommandBuffer commandBuffer, @Nonnull final Damage damage)

Method onSufferedDamage.

Parameters:
@Nonnull final CommandBuffer commandBuffer
@Nonnull final Damage damage

onKill

public void onKill (@Nonnull final Ref victim, @Nonnull final Vector3d position)

Method onKill.

Parameters:
@Nonnull final Ref victim
@Nonnull final Vector3d position

haveKill

public boolean haveKill ()

Method haveKill.

haveKilled

public boolean haveKilled (final Ref entity)

Method haveKilled.

Parameters:
final Ref entity

getAnyKilled

public Ref getAnyKilled ()

Method getAnyKilled.

getKillPosition

public Vector3d getKillPosition (final Ref entity)

Method getKillPosition.

Parameters:
final Ref entity

getMaxDamageInflicted

public double getMaxDamageInflicted ()

Method getMaxDamageInflicted.

getMaxDamageSuffered

public double getMaxDamageSuffered ()

Method getMaxDamageSuffered.

getDamage

public double getDamage (final DamageCause cause)

Method getDamage.

Parameters:
final DamageCause cause

hasSufferedDamage

public boolean hasSufferedDamage (final DamageCause cause)

Method hasSufferedDamage.

Parameters:
final DamageCause cause

getMostDamagedVictim

public Ref getMostDamagedVictim ()

Method getMostDamagedVictim.

getMostDamagingAttacker

public Ref getMostDamagingAttacker ()

Method getMostDamagingAttacker.

getAnyAttacker

public Ref getAnyAttacker ()

Method getAnyAttacker.

clone

public DamageData clone ()

Method clone.

toString

public String toString ()

Method toString.