Search in sources :

Example 1 with SpongeGoalType

use of org.spongepowered.common.entity.ai.goal.SpongeGoalType in project SpongeCommon by SpongePowered.

the class SpongeRegistryLoaders method goalType.

public static RegistryLoader<GoalType> goalType() {
    return RegistryLoader.of(l -> {
        l.add(GoalTypes.ATTACK_LIVING, k -> new SpongeGoalType(AttackLivingGoal.class));
        l.add(GoalTypes.AVOID_LIVING, k -> new SpongeGoalType(AvoidLivingGoal.class));
        l.add(GoalTypes.FIND_NEAREST_ATTACKABLE, k -> new SpongeGoalType(FindNearestAttackableTargetGoal.class));
        l.add(GoalTypes.LOOK_AT, k -> new SpongeGoalType(LookAtGoal.class));
        l.add(GoalTypes.LOOK_RANDOMLY, k -> new SpongeGoalType(LookRandomlyGoal.class));
        l.add(GoalTypes.RANDOM_WALKING, k -> new SpongeGoalType(RandomWalkingGoal.class));
        l.add(GoalTypes.RANGED_ATTACK_AGAINST_AGENT, k -> new SpongeGoalType(RangedAttackAgainstAgentGoal.class));
        l.add(GoalTypes.RUN_AROUND_LIKE_CRAZY, k -> new SpongeGoalType(RunAroundLikeCrazyGoal.class));
        l.add(GoalTypes.SWIM, k -> new SpongeGoalType(SwimGoal.class));
    });
}
Also used : RangedAttackAgainstAgentGoal(org.spongepowered.api.entity.ai.goal.builtin.creature.RangedAttackAgainstAgentGoal) LookAtGoal(org.spongepowered.api.entity.ai.goal.builtin.LookAtGoal) RunAroundLikeCrazyGoal(org.spongepowered.api.entity.ai.goal.builtin.creature.horse.RunAroundLikeCrazyGoal) LookRandomlyGoal(org.spongepowered.api.entity.ai.goal.builtin.LookRandomlyGoal) AttackLivingGoal(org.spongepowered.api.entity.ai.goal.builtin.creature.AttackLivingGoal) AvoidLivingGoal(org.spongepowered.api.entity.ai.goal.builtin.creature.AvoidLivingGoal) RandomWalkingGoal(org.spongepowered.api.entity.ai.goal.builtin.creature.RandomWalkingGoal) SpongeGoalType(org.spongepowered.common.entity.ai.goal.SpongeGoalType) SwimGoal(org.spongepowered.api.entity.ai.goal.builtin.SwimGoal) FindNearestAttackableTargetGoal(org.spongepowered.api.entity.ai.goal.builtin.creature.target.FindNearestAttackableTargetGoal)

Aggregations

LookAtGoal (org.spongepowered.api.entity.ai.goal.builtin.LookAtGoal)1 LookRandomlyGoal (org.spongepowered.api.entity.ai.goal.builtin.LookRandomlyGoal)1 SwimGoal (org.spongepowered.api.entity.ai.goal.builtin.SwimGoal)1 AttackLivingGoal (org.spongepowered.api.entity.ai.goal.builtin.creature.AttackLivingGoal)1 AvoidLivingGoal (org.spongepowered.api.entity.ai.goal.builtin.creature.AvoidLivingGoal)1 RandomWalkingGoal (org.spongepowered.api.entity.ai.goal.builtin.creature.RandomWalkingGoal)1 RangedAttackAgainstAgentGoal (org.spongepowered.api.entity.ai.goal.builtin.creature.RangedAttackAgainstAgentGoal)1 RunAroundLikeCrazyGoal (org.spongepowered.api.entity.ai.goal.builtin.creature.horse.RunAroundLikeCrazyGoal)1 FindNearestAttackableTargetGoal (org.spongepowered.api.entity.ai.goal.builtin.creature.target.FindNearestAttackableTargetGoal)1 SpongeGoalType (org.spongepowered.common.entity.ai.goal.SpongeGoalType)1