public class EntityAIAttackMelee extends EntityAIBase
| Modifier and Type | Field and Description |
|---|---|
protected EntityCreature |
attacker |
protected int |
attackInterval |
protected int |
attackTick |
private boolean |
canPenalize |
private int |
delayCounter |
private int |
failedPathFindingPenalty |
(package private) boolean |
longMemory |
(package private) Path |
path |
(package private) double |
speedTowardsTarget |
private double |
targetX |
private double |
targetY |
private double |
targetZ |
(package private) World |
world |
| Constructor and Description |
|---|
EntityAIAttackMelee(EntityCreature creature,
double speedIn,
boolean useLongMemory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAndPerformAttack(EntityLivingBase p_190102_1_,
double p_190102_2_) |
protected double |
getAttackReachSqr(EntityLivingBase attackTarget) |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
updateTask() |
getMutexBits, isInterruptible, setMutexBitsWorld world
protected EntityCreature attacker
protected int attackTick
double speedTowardsTarget
boolean longMemory
Path path
private int delayCounter
private double targetX
private double targetY
private double targetZ
protected final int attackInterval
private int failedPathFindingPenalty
private boolean canPenalize
public EntityAIAttackMelee(EntityCreature creature, double speedIn, boolean useLongMemory)
public boolean shouldExecute()
shouldExecute in class EntityAIBasepublic boolean shouldContinueExecuting()
shouldContinueExecuting in class EntityAIBasepublic void startExecuting()
startExecuting in class EntityAIBasepublic void resetTask()
resetTask in class EntityAIBasepublic void updateTask()
updateTask in class EntityAIBaseprotected void checkAndPerformAttack(EntityLivingBase p_190102_1_, double p_190102_2_)
protected double getAttackReachSqr(EntityLivingBase attackTarget)