Search in sources :

Example 1 with SpongeGoalType

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

the class GoalTypeModule method createGoalType.

private GoalType createGoalType(String combinedId, String name) {
    @SuppressWarnings("unchecked") final SpongeGoalType newType = new SpongeGoalType(combinedId, name, (Class<Goal<?>>) (Class<?>) EntityAITasks.class);
    this.goalTypes.put(combinedId, newType);
    return newType;
}
Also used : Goal(org.spongepowered.api.entity.ai.Goal) SpongeGoalType(org.spongepowered.common.entity.ai.SpongeGoalType)

Aggregations

Goal (org.spongepowered.api.entity.ai.Goal)1 SpongeGoalType (org.spongepowered.common.entity.ai.SpongeGoalType)1