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, updateTask
private 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 EntityAIBase
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAIBase
public void resetTask()
resetTask
in class EntityAIBase
private VillageDoorInfo findNearestDoor(Village villageIn)
private boolean doesDoorListContain(VillageDoorInfo doorInfoIn)
private void resizeDoorList()