use of net.minecraft.entity.ai.EntityAIRestrictSun in project Cavern2 by kegare.
the class EntityCaveman method initEntityAI.
@Override
protected void initEntityAI() {
tasks.addTask(0, new EntityAISwimming(this));
tasks.addTask(1, new EntityAIRestrictSun(this));
tasks.addTask(2, new EntityAIMoveTowardsRestriction(this, 1.0D));
tasks.addTask(5, new EntityAIWanderAvoidWater(this, 1.0D));
tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
tasks.addTask(8, new EntityAILookIdle(this));
applyEntityAI();
}
Aggregations