Enum Class NpcVisibility

java.lang.Object
java.lang.Enum<NpcVisibility>
de.oliver.fancynpcs.api.data.property.NpcVisibility
All Implemented Interfaces:
Serializable, Comparable<NpcVisibility>, Constable

public enum NpcVisibility extends Enum<NpcVisibility>
  • Enum Constant Details

    • ALL

      public static final NpcVisibility ALL
      Everybody can see an NPC.
    • PERMISSION_REQUIRED

      public static final NpcVisibility PERMISSION_REQUIRED
      The player needs permission to see a specific NPC.
    • MANUAL

      public static final NpcVisibility MANUAL
      The player needs to be added manually through the API
  • Method Details

    • values

      public static NpcVisibility[] 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 NpcVisibility 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
    • byString

      public static Optional<NpcVisibility> byString(String value)
    • canSee

      public boolean canSee(org.bukkit.entity.Player player, Npc npc)