Class ThreatTableEntry
java.lang.Object
com.minecolonies.api.entity.ai.combat.threat.ThreatTableEntry
Data entry in the threat table
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddThreat(int threat) Adds threatnet.minecraft.world.entity.LivingEntityGet the target entitylongGet the worldtime of where it was last seenintGet the threat valuevoidsetLastSeen(long gameTime) Set the world time of when it was last seenprotected voidsetThreat(int threat) Set the threat value directly
-
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-
-