Search in sources :

Example 1 with EntityAIRestrictSun

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();
}
Also used : EntityAIWatchClosest(net.minecraft.entity.ai.EntityAIWatchClosest) EntityAIMoveTowardsRestriction(net.minecraft.entity.ai.EntityAIMoveTowardsRestriction) EntityAISwimming(net.minecraft.entity.ai.EntityAISwimming) EntityAIRestrictSun(net.minecraft.entity.ai.EntityAIRestrictSun) EntityPlayer(net.minecraft.entity.player.EntityPlayer) EntityAILookIdle(net.minecraft.entity.ai.EntityAILookIdle) EntityAIWanderAvoidWater(net.minecraft.entity.ai.EntityAIWanderAvoidWater)

Aggregations

EntityAILookIdle (net.minecraft.entity.ai.EntityAILookIdle)1 EntityAIMoveTowardsRestriction (net.minecraft.entity.ai.EntityAIMoveTowardsRestriction)1 EntityAIRestrictSun (net.minecraft.entity.ai.EntityAIRestrictSun)1 EntityAISwimming (net.minecraft.entity.ai.EntityAISwimming)1 EntityAIWanderAvoidWater (net.minecraft.entity.ai.EntityAIWanderAvoidWater)1 EntityAIWatchClosest (net.minecraft.entity.ai.EntityAIWatchClosest)1 EntityPlayer (net.minecraft.entity.player.EntityPlayer)1