use of org.spongepowered.api.entity.ai.goal.builtin.SwimGoal in project SpongeCommon by SpongePowered.
the class SpongeSwimGoalBuilder method build.
@Override
public SwimGoal build(Agent owner) {
checkNotNull(owner);
final SwimGoal task = (SwimGoal) new net.minecraft.world.entity.ai.goal.FloatGoal((Mob) owner);
task.setSwimChance(this.chance);
return task;
}