Class ThreatTableEntry

java.lang.Object
com.minecolonies.api.entity.ai.combat.threat.ThreatTableEntry

public class ThreatTableEntry extends Object
Data entry in the threat table
  • Constructor Details

    • ThreatTableEntry

      public ThreatTableEntry(net.minecraft.world.entity.LivingEntity entity)
  • Method Details

    • addThreat

      protected void addThreat(int threat)
      Adds threat
    • setThreat

      protected void setThreat(int threat)
      Set the threat value directly
      Parameters:
      threat -
    • getThreat

      public int getThreat()
      Get the threat value
      Returns:
    • getEntity

      public net.minecraft.world.entity.LivingEntity getEntity()
      Get the target entity
      Returns:
      target
    • getLastSeen

      public long getLastSeen()
      Get the worldtime of where it was last seen
      Returns:
    • setLastSeen

      public void setLastSeen(long gameTime)
      Set the world time of when it was last seen
      Parameters:
      gameTime -