Interface GoalBuilder<O extends Agent,G extends Goal<O>,B extends GoalBuilder<O,G,B>>

Type Parameters:
O - The type of agent
G - The type of goal
B - The type of builder, self-referencing
All Superinterfaces:
CopyableBuilder<G,B>, ResettableBuilder<G,B>
All Known Subinterfaces:
AttackLivingGoal.Builder, AvoidLivingGoal.Builder, FindNearestAttackableTargetGoal.Builder, LookAtGoal.Builder, LookRandomlyGoal.Builder, RandomWalkingGoal.Builder, RangedAttackAgainstAgentGoal.Builder, RunAroundLikeCrazyGoal.Builder, SwimGoal.Builder, TargetGoal.Builder<A,B>

public interface GoalBuilder<O extends Agent,G extends Goal<O>,B extends GoalBuilder<O,G,B>> extends CopyableBuilder<G,B>, ResettableBuilder<G,B>
A utility to assist in building Goals.
  • Method Summary

    Modifier and Type
    Method
    Description
    build(O owner)
    Builds the Goal.

    Methods inherited from interface org.spongepowered.api.util.CopyableBuilder

    from

    Methods inherited from interface org.spongepowered.api.util.ResettableBuilder

    reset
  • Method Details

    • build

      G build(O owner)
      Builds the Goal.
      Parameters:
      owner - The owner of the task
      Returns:
      The goal