Enum Class NPC.GazeTrackingType

java.lang.Object
java.lang.Enum<NPC.GazeTrackingType>
dev.sergiferry.playernpc.api.NPC.GazeTrackingType
All Implemented Interfaces:
Serializable, Comparable<NPC.GazeTrackingType>, Constable
Enclosing class:
NPC

public static enum NPC.GazeTrackingType extends Enum<NPC.GazeTrackingType>
Set the follow look type to the NPC with NPC.setGazeTrackingType(GazeTrackingType)
Since:
2021.1
See Also:
NPC.setGazeTrackingType(GazeTrackingType), NPC.getGazeTrackingType()
  • Enum Constant Details

    • NONE

      public static final NPC.GazeTrackingType NONE
      The NPC will not move the look direction automatically.
    • PLAYER

      public static final NPC.GazeTrackingType PLAYER
      The NPC will move the look direction automatically to the player that see the NPC. That means that each player will see the NPC looking himself.
    • NEAREST_PLAYER

      public static final NPC.GazeTrackingType NEAREST_PLAYER
      The NPC will move the look direction automatically to the nearest player to the NPC location. That means that a player can see his NPC looking to another player if it's nearer than him.
    • NEAREST_ENTITY

      public static final NPC.GazeTrackingType NEAREST_ENTITY
      The NPC will move the look direction automatically to the nearest entity to the NPC location.
  • Method Details

    • values

      public static NPC.GazeTrackingType[] 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 NPC.GazeTrackingType 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