Enum Class IWaypoint.Tag

java.lang.Object
java.lang.Enum<IWaypoint.Tag>
baritone.api.cache.IWaypoint.Tag
All Implemented Interfaces:
Serializable, Comparable<IWaypoint.Tag>, Constable
Enclosing interface:
IWaypoint

public static enum IWaypoint.Tag extends Enum<IWaypoint.Tag>
  • Enum Constant Details

    • HOME

      public static final IWaypoint.Tag HOME
      Tag indicating a position explictly marked as a home base
    • DEATH

      public static final IWaypoint.Tag DEATH
      Tag indicating a position that the local player has died at
    • BED

      public static final IWaypoint.Tag BED
      Tag indicating a bed position
    • USER

      public static final IWaypoint.Tag USER
      Tag indicating that the waypoint was user-created
  • Field Details

    • names

      public final String[] names
      The names for the tag, anything that the tag can be referred to as.
  • Method Details

    • values

      public static IWaypoint.Tag[] 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 IWaypoint.Tag 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
    • getName

      public String getName()
      Returns:
      A name that can be passed to getByName(String) to retrieve this tag
    • getByName

      public static IWaypoint.Tag getByName(String name)
      Gets a tag by one of its names.
      Parameters:
      name - The name to search for.
      Returns:
      The tag, if found, or null.
    • getAllNames

      public static String[] getAllNames()
      Returns:
      All tag names.