public class EntityAIHurtByTarget extends EntityAITarget
Modifier and Type | Field and Description |
---|---|
private boolean |
entityCallsForHelp |
private int |
revengeTimerOld
Store the previous revengeTimer value
|
private java.lang.Class[] |
targetClasses |
shouldCheckSight, taskOwner
Constructor and Description |
---|
EntityAIHurtByTarget(EntityCreature creatureIn,
boolean entityCallsForHelpIn,
java.lang.Class... targetClassesIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
setEntityAttackTarget(EntityCreature creatureIn,
EntityLivingBase entityLivingBaseIn) |
boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
continueExecuting, getTargetDistance, isSuitableTarget, isSuitableTarget, resetTask
getMutexBits, isInterruptible, setMutexBits, updateTask
private boolean entityCallsForHelp
private int revengeTimerOld
private final java.lang.Class[] targetClasses
public EntityAIHurtByTarget(EntityCreature creatureIn, boolean entityCallsForHelpIn, java.lang.Class... targetClassesIn)
public boolean shouldExecute()
shouldExecute
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAITarget
protected void setEntityAttackTarget(EntityCreature creatureIn, EntityLivingBase entityLivingBaseIn)