public class EntityAIMoveThroughVillage extends EntityAIBase
| Modifier and Type | Field and Description |
|---|---|
private VillageDoorInfo |
doorInfo |
private java.util.List<VillageDoorInfo> |
doorList |
private PathEntity |
entityPathNavigate
The PathNavigate of our entity.
|
private boolean |
isNocturnal |
private double |
movementSpeed |
private EntityCreature |
theEntity |
| Constructor and Description |
|---|
EntityAIMoveThroughVillage(EntityCreature theEntityIn,
double movementSpeedIn,
boolean isNocturnalIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
continueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
private boolean |
doesDoorListContain(VillageDoorInfo doorInfoIn) |
private VillageDoorInfo |
findNearestDoor(Village villageIn) |
void |
resetTask()
Resets the task
|
private void |
resizeDoorList() |
boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
getMutexBits, isInterruptible, setMutexBits, updateTaskprivate EntityCreature theEntity
private double movementSpeed
private PathEntity entityPathNavigate
private VillageDoorInfo doorInfo
private boolean isNocturnal
private java.util.List<VillageDoorInfo> doorList
public EntityAIMoveThroughVillage(EntityCreature theEntityIn, double movementSpeedIn, boolean isNocturnalIn)
public boolean shouldExecute()
shouldExecute in class EntityAIBasepublic boolean continueExecuting()
continueExecuting in class EntityAIBasepublic void startExecuting()
startExecuting in class EntityAIBasepublic void resetTask()
resetTask in class EntityAIBaseprivate VillageDoorInfo findNearestDoor(Village villageIn)
private boolean doesDoorListContain(VillageDoorInfo doorInfoIn)
private void resizeDoorList()