Search in sources :

Example 1 with RobitAIPickup

use of mekanism.common.entity.ai.RobitAIPickup in project Mekanism by mekanism.

the class EntityRobit method registerGoals.

@Override
protected void registerGoals() {
    super.registerGoals();
    goalSelector.addGoal(1, new RobitAIPickup(this, 1));
    goalSelector.addGoal(2, new RobitAIFollow(this, 1, 4, 2));
    goalSelector.addGoal(3, new LookAtGoal(this, PlayerEntity.class, 8));
    goalSelector.addGoal(3, new LookRandomlyGoal(this));
    goalSelector.addGoal(4, new SwimGoal(this));
}
Also used : LookAtGoal(net.minecraft.entity.ai.goal.LookAtGoal) LookRandomlyGoal(net.minecraft.entity.ai.goal.LookRandomlyGoal) RobitAIFollow(mekanism.common.entity.ai.RobitAIFollow) RobitAIPickup(mekanism.common.entity.ai.RobitAIPickup) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity) ServerPlayerEntity(net.minecraft.entity.player.ServerPlayerEntity)

Aggregations

RobitAIFollow (mekanism.common.entity.ai.RobitAIFollow)1 RobitAIPickup (mekanism.common.entity.ai.RobitAIPickup)1 LookAtGoal (net.minecraft.entity.ai.goal.LookAtGoal)1 LookRandomlyGoal (net.minecraft.entity.ai.goal.LookRandomlyGoal)1 SwimGoal (net.minecraft.entity.ai.goal.SwimGoal)1 PlayerEntity (net.minecraft.entity.player.PlayerEntity)1 ServerPlayerEntity (net.minecraft.entity.player.ServerPlayerEntity)1