public class EntityAIDefendVillage extends EntityAITarget
| Modifier and Type | Field and Description |
|---|---|
(package private) EntityIronGolem |
irongolem |
(package private) EntityLivingBase |
villageAgressorTarget
The aggressor of the iron golem's village which is now the golem's attack target.
|
shouldCheckSight, taskOwner| Constructor and Description |
|---|
EntityAIDefendVillage(EntityIronGolem ironGolemIn) |
| Modifier and Type | Method and Description |
|---|---|
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, updateTaskEntityIronGolem irongolem
EntityLivingBase villageAgressorTarget
public EntityAIDefendVillage(EntityIronGolem ironGolemIn)
public boolean shouldExecute()
shouldExecute in class EntityAIBasepublic void startExecuting()
startExecuting in class EntityAITarget