public class EntityAIHurtByTarget extends EntityAITarget
Modifier and Type | Field and Description |
---|---|
private boolean |
entityCallsForHelp |
private java.lang.Class<?>[] |
excludedReinforcementTypes |
private int |
revengeTimerOld |
shouldCheckSight, target, taskOwner, unseenMemoryTicks
Constructor and Description |
---|
EntityAIHurtByTarget(EntityCreature creatureIn,
boolean entityCallsForHelpIn,
java.lang.Class<?>... excludedReinforcementTypes) |
Modifier and Type | Method and Description |
---|---|
protected void |
alertOthers() |
protected void |
setEntityAttackTarget(EntityCreature creatureIn,
EntityLivingBase entityLivingBaseIn) |
boolean |
shouldExecute() |
void |
startExecuting() |
getTargetDistance, isSuitableTarget, isSuitableTarget, resetTask, setUnseenMemoryTicks, shouldContinueExecuting
getMutexBits, isInterruptible, setMutexBits, updateTask
private final boolean entityCallsForHelp
private int revengeTimerOld
private final java.lang.Class<?>[] excludedReinforcementTypes
public EntityAIHurtByTarget(EntityCreature creatureIn, boolean entityCallsForHelpIn, java.lang.Class<?>... excludedReinforcementTypes)
public boolean shouldExecute()
shouldExecute
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAITarget
protected void alertOthers()
protected void setEntityAttackTarget(EntityCreature creatureIn, EntityLivingBase entityLivingBaseIn)