Search in sources :

Example 11 with SwimGoal

use of net.minecraft.entity.ai.goal.SwimGoal in project ChaosAwakens by ChaosAwakens.

the class StinkBugEntity method registerGoals.

@Override
protected void registerGoals() {
    this.goalSelector.addGoal(1, new SwimGoal(this));
    this.goalSelector.addGoal(5, new RandomWalkingGoal(this, 1.6));
    this.goalSelector.addGoal(7, new LookRandomlyGoal(this));
    this.goalSelector.addGoal(7, new WaterAvoidingRandomWalkingGoal(this, 1.0));
}
Also used : LookRandomlyGoal(net.minecraft.entity.ai.goal.LookRandomlyGoal) WaterAvoidingRandomWalkingGoal(net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal) WaterAvoidingRandomWalkingGoal(net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal) RandomWalkingGoal(net.minecraft.entity.ai.goal.RandomWalkingGoal) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal)

Example 12 with SwimGoal

use of net.minecraft.entity.ai.goal.SwimGoal in project LittleMaidModelLoader-Fabric by SistrScarlet.

the class MultiModelEntity method initGoals.

@Override
protected void initGoals() {
    this.goalSelector.add(0, new SwimGoal(this));
    this.goalSelector.add(7, new LookAtEntityGoal(this, PlayerEntity.class, 6.0F));
    this.goalSelector.add(8, new LookAroundGoal(this));
}
Also used : LookAroundGoal(net.minecraft.entity.ai.goal.LookAroundGoal) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Example 13 with SwimGoal

use of net.minecraft.entity.ai.goal.SwimGoal in project Neutrino by FrostWizard4.

the class RatEntity method initGoals.

@Override
protected void initGoals() {
    this.goalSelector.add(4, new RatEntity.AttackGoal(this));
    this.targetSelector.add(1, new RevengeGoal(this));
    this.goalSelector.add(1, new SwimGoal(this));
    this.targetSelector.add(2, new RatEntity.TargetGoal<>(this, PlayerEntity.class));
    super.initGoals();
}
Also used : RevengeGoal(net.minecraft.entity.ai.goal.RevengeGoal) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Example 14 with SwimGoal

use of net.minecraft.entity.ai.goal.SwimGoal 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));
}
Also used : LookAtGoal(net.minecraft.entity.ai.goal.LookAtGoal) EntityAIInteractToggleAble(com.minecolonies.coremod.entity.ai.minimal.EntityAIInteractToggleAble) EntityAIVisitor(com.minecolonies.coremod.entity.ai.minimal.EntityAIVisitor) LookAtWithoutMovingGoal(net.minecraft.entity.ai.goal.LookAtWithoutMovingGoal) OpenDoorGoal(net.minecraft.entity.ai.goal.OpenDoorGoal) AbstractEntityCitizen(com.minecolonies.api.entity.citizen.AbstractEntityCitizen) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity) ServerPlayerEntity(net.minecraft.entity.player.ServerPlayerEntity)

Example 15 with SwimGoal

use of net.minecraft.entity.ai.goal.SwimGoal in project endergetic by team-abnormals.

the class BoofloBabyEntity method registerGoals.

@Override
protected void registerGoals() {
    // Makes Booflo when in water at surface to stay and swim like a cow in water
    this.goalSelector.addGoal(0, new SwimGoal(this));
    this.goalSelector.addGoal(3, new BabyFollowParentGoal(this, 1.2F));
    this.goalSelector.addGoal(5, new BoofloBabyEntity.RandomFlyingGoal(this, 1.1D, 20));
}
Also used : BabyFollowParentGoal(com.minecraftabnormals.endergetic.common.entities.booflo.ai.BabyFollowParentGoal) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal)

Aggregations

SwimGoal (net.minecraft.entity.ai.goal.SwimGoal)23 PlayerEntity (net.minecraft.entity.player.PlayerEntity)12 LookAtGoal (net.minecraft.entity.ai.goal.LookAtGoal)7 LookRandomlyGoal (net.minecraft.entity.ai.goal.LookRandomlyGoal)6 ServerPlayerEntity (net.minecraft.entity.player.ServerPlayerEntity)5 AbstractEntityCitizen (com.minecolonies.api.entity.citizen.AbstractEntityCitizen)4 EntityAIInteractToggleAble (com.minecolonies.coremod.entity.ai.minimal.EntityAIInteractToggleAble)4 LookAtEntityGoal (net.minecraft.entity.ai.goal.LookAtEntityGoal)4 LookAtWithoutMovingGoal (net.minecraft.entity.ai.goal.LookAtWithoutMovingGoal)4 RandomWalkingGoal (net.minecraft.entity.ai.goal.RandomWalkingGoal)3 RevengeGoal (net.minecraft.entity.ai.goal.RevengeGoal)3 WaterAvoidingRandomWalkingGoal (net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal)3 EntityAIFollowAttackTarget (team.cqr.cqrepoured.entity.ai.EntityAIFollowAttackTarget)3 EntityAIFollowPath (team.cqr.cqrepoured.entity.ai.EntityAIFollowPath)3 EntityAIMoveToHome (team.cqr.cqrepoured.entity.ai.EntityAIMoveToHome)3 EntityAIMoveToLeader (team.cqr.cqrepoured.entity.ai.EntityAIMoveToLeader)3 EntityAIAttack (team.cqr.cqrepoured.entity.ai.attack.EntityAIAttack)3 EntityAICQRNearestAttackTarget (team.cqr.cqrepoured.entity.ai.target.EntityAICQRNearestAttackTarget)3 EntityAIHurtByTarget (team.cqr.cqrepoured.entity.ai.target.EntityAIHurtByTarget)3 EntityAIVisitor (com.minecolonies.coremod.entity.ai.minimal.EntityAIVisitor)2