public class EntityAIPlay extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
private int |
playTime |
private double |
speed |
private EntityLivingBase |
targetVillager |
private EntityVillager |
villager |
Constructor and Description |
---|
EntityAIPlay(EntityVillager villagerIn,
double speedIn) |
Modifier and Type | Method and Description |
---|---|
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
updateTask() |
getMutexBits, isInterruptible, setMutexBits
private final EntityVillager villager
private EntityLivingBase targetVillager
private final double speed
private int playTime
public EntityAIPlay(EntityVillager villagerIn, double speedIn)
public boolean shouldExecute()
shouldExecute
in class EntityAIBase
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAIBase
public void resetTask()
resetTask
in class EntityAIBase
public void updateTask()
updateTask
in class EntityAIBase