public class EntityAIMoveThroughVillage extends EntityAIBase
| Modifier and Type | Field and Description |
|---|---|
private VillageDoorInfo |
doorInfo |
private java.util.List<VillageDoorInfo> |
doorList |
private EntityCreature |
entity |
private boolean |
isNocturnal |
private double |
movementSpeed |
private Path |
path |
| Constructor and Description |
|---|
EntityAIMoveThroughVillage(EntityCreature entityIn,
double movementSpeedIn,
boolean isNocturnalIn) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
doesDoorListContain(VillageDoorInfo doorInfoIn) |
private VillageDoorInfo |
findNearestDoor(Village villageIn) |
void |
resetTask() |
private void |
resizeDoorList() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
getMutexBits, isInterruptible, setMutexBits, updateTaskprivate final EntityCreature entity
private final double movementSpeed
private Path path
private VillageDoorInfo doorInfo
private final boolean isNocturnal
private final java.util.List<VillageDoorInfo> doorList
public EntityAIMoveThroughVillage(EntityCreature entityIn, double movementSpeedIn, boolean isNocturnalIn)
public boolean shouldExecute()
shouldExecute in class EntityAIBasepublic boolean shouldContinueExecuting()
shouldContinueExecuting 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()