Class CitizenCombatTracker

java.lang.Object
net.minecraft.world.damagesource.CombatTracker
com.minecolonies.core.entity.citizen.CitizenCombatTracker

public class CitizenCombatTracker extends net.minecraft.world.damagesource.CombatTracker
Adaptation of CombatTracker to properly handle citizen death messages.
  • Field Summary

    Fields inherited from class net.minecraft.world.damagesource.CombatTracker

    entries, RESET_COMBAT_STATUS_TIME, RESET_DAMAGE_STATUS_TIME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.minecraft.network.chat.Component
     

    Methods inherited from class net.minecraft.world.damagesource.CombatTracker

    getCombatDuration, getMostSignificantFall, recheckStatus, recordDamage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CitizenCombatTracker

      public CitizenCombatTracker(EntityCitizen citizen)
  • Method Details

    • getDeathMessage

      @NotNull public @NotNull net.minecraft.network.chat.Component getDeathMessage()
      Overrides:
      getDeathMessage in class net.minecraft.world.damagesource.CombatTracker