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, setMutexBitsprivate 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 EntityAIBasepublic boolean shouldContinueExecuting()
shouldContinueExecuting in class EntityAIBasepublic void startExecuting()
startExecuting in class EntityAIBasepublic void resetTask()
resetTask in class EntityAIBasepublic void updateTask()
updateTask in class EntityAIBase