Enum Class Goal.Flag

java.lang.Object
java.lang.Enum<Goal.Flag>
fr.fidorial.entity.ai.Goal.Flag
All Implemented Interfaces:
Serializable, Comparable<Goal.Flag>, Constable
Enclosing interface:
Goal

public static enum Goal.Flag extends Enum<Goal.Flag>
A control of a mob that a running Goal holds.
Since:
0.1.0
  • Enum Constant Details

    • MOVE

      public static final Goal.Flag MOVE
      Where the mob walks.
      Since:
      0.1.0
    • LOOK

      public static final Goal.Flag LOOK
      Where the mob looks.
      Since:
      0.1.0
    • JUMP

      public static final Goal.Flag JUMP
      Whether the mob jumps.
      Since:
      0.1.0
    • TARGET

      public static final Goal.Flag TARGET
      Whom the mob targets.
      Since:
      0.1.0
  • Field Details

    • EXCLUSIVE

      public static final Set<Goal.Flag> EXCLUSIVE
      The controls of a goal that runs alone: moving, looking and jumping.
      Since:
      0.1.0
  • Method Details

    • values

      public static Goal.Flag[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Goal.Flag valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null