Class DamageData

java.lang.Object
com.hypixel.hytale.server.npc.util.DamageData

public class DamageData extends Object
DamageData collects any damages/kills inflicted/suffered for an NPC.
  • Constructor Details

    • DamageData

      public DamageData()
  • Method Details

    • reset

      public void reset()
    • onInflictedDamage

      public void onInflictedDamage(Ref<EntityStore> target, double amount)
    • onSufferedDamage

      public void onSufferedDamage(@Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Damage damage)
    • onKill

      public void onKill(@Nonnull Ref<EntityStore> victim, @Nonnull org.joml.Vector3d position)
    • haveKill

      public boolean haveKill()
    • haveKilled

      public boolean haveKilled(Ref<EntityStore> entity)
    • getAnyKilled

      @Nullable public Ref<EntityStore> getAnyKilled()
    • getKillPosition

      public org.joml.Vector3d getKillPosition(Ref<EntityStore> entity)
    • getMaxDamageInflicted

      public double getMaxDamageInflicted()
    • getMaxDamageSuffered

      public double getMaxDamageSuffered()
    • getDamage

      public double getDamage(DamageCause cause)
    • hasSufferedDamage

      public boolean hasSufferedDamage(DamageCause cause)
    • hasSufferedDamage

      public boolean hasSufferedDamage(DamageCause cause, boolean includeDoT)
    • getMostDamagedVictim

      @Nullable public Ref<EntityStore> getMostDamagedVictim()
    • getMostDamagingAttacker

      @Nullable public Ref<EntityStore> getMostDamagingAttacker()
    • getMostDamagingAttacker

      @Nullable public Ref<EntityStore> getMostDamagingAttacker(boolean includeDoT)
    • getAnyAttacker

      @Nullable public Ref<EntityStore> getAnyAttacker()
    • getAnyAttacker

      @Nullable public Ref<EntityStore> getAnyAttacker(boolean includeDoT)
    • clone

      @Nonnull public DamageData clone()
    • toString

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