use of com.minecolonies.coremod.entity.ai.minimal.EntityAIVisitor in project minecolonies by ldtteam.
the class VisitorCitizen method initTasks.
private void initTasks() {
int priority = 0;
this.goalSelector.addGoal(priority, new SwimGoal(this));
this.goalSelector.addGoal(++priority, new OpenDoorGoal(this, true));
this.goalSelector.addGoal(priority, new EntityAIInteractToggleAble(this, FENCE_TOGGLE, TRAP_TOGGLE, DOOR_TOGGLE));
this.goalSelector.addGoal(++priority, new LookAtWithoutMovingGoal(this, PlayerEntity.class, WATCH_CLOSEST2, 1.0F));
this.goalSelector.addGoal(++priority, new LookAtWithoutMovingGoal(this, EntityCitizen.class, WATCH_CLOSEST2_FAR, WATCH_CLOSEST2_FAR_CHANCE));
this.goalSelector.addGoal(++priority, new LookAtGoal(this, LivingEntity.class, WATCH_CLOSEST));
this.goalSelector.addGoal(++priority, new EntityAIVisitor(this));
}
use of com.minecolonies.coremod.entity.ai.minimal.EntityAIVisitor in project minecolonies by Minecolonies.
the class VisitorCitizen method initTasks.
private void initTasks() {
int priority = 0;
this.goalSelector.addGoal(priority, new SwimGoal(this));
this.goalSelector.addGoal(++priority, new OpenDoorGoal(this, true));
this.goalSelector.addGoal(priority, new EntityAIInteractToggleAble(this, FENCE_TOGGLE, TRAP_TOGGLE, DOOR_TOGGLE));
this.goalSelector.addGoal(++priority, new LookAtWithoutMovingGoal(this, PlayerEntity.class, WATCH_CLOSEST2, 1.0F));
this.goalSelector.addGoal(++priority, new LookAtWithoutMovingGoal(this, EntityCitizen.class, WATCH_CLOSEST2_FAR, WATCH_CLOSEST2_FAR_CHANCE));
this.goalSelector.addGoal(++priority, new LookAtGoal(this, LivingEntity.class, WATCH_CLOSEST));
this.goalSelector.addGoal(++priority, new EntityAIVisitor(this));
}
Aggregations