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, resetTaskgetMutexBits, isInterruptible, setMutexBits, updateTaskprivate 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 EntityAIBasepublic void startExecuting()
startExecuting in class EntityAITargetprotected void setEntityAttackTarget(EntityCreature creatureIn, EntityLivingBase entityLivingBaseIn)