public class EntityAIVillagerMate extends EntityAIBase
| Modifier and Type | Field and Description |
|---|---|
private EntityVillager |
mate |
private int |
matingTimeout |
(package private) Village |
villageObj |
private EntityVillager |
villagerObj |
private World |
worldObj |
| Constructor and Description |
|---|
EntityAIVillagerMate(EntityVillager villagerIn) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
checkSufficientDoorsPresentForNewVillager() |
boolean |
continueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
private void |
giveBirth() |
void |
resetTask()
Resets the task
|
boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
updateTask()
Updates the task
|
getMutexBits, isInterruptible, setMutexBitsprivate EntityVillager villagerObj
private EntityVillager mate
private World worldObj
private int matingTimeout
Village villageObj
public EntityAIVillagerMate(EntityVillager villagerIn)
public boolean shouldExecute()
shouldExecute in class EntityAIBasepublic void startExecuting()
startExecuting in class EntityAIBasepublic void resetTask()
resetTask in class EntityAIBasepublic boolean continueExecuting()
continueExecuting in class EntityAIBasepublic void updateTask()
updateTask in class EntityAIBaseprivate boolean checkSufficientDoorsPresentForNewVillager()
private void giveBirth()