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));
});
}
Aggregations