Package baritone.api.cache
Enum Class IWaypoint.Tag
- All Implemented Interfaces:
Serializable,Comparable<IWaypoint.Tag>,Constable
- Enclosing interface:
IWaypoint
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]static IWaypoint.TagGets a tag by one of its names.getName()static IWaypoint.TagReturns the enum constant of this class with the specified name.static IWaypoint.Tag[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HOME
Tag indicating a position explictly marked as a home base -
DEATH
Tag indicating a position that the local player has died at -
BED
Tag indicating a bed position -
USER
Tag indicating that the waypoint was user-created
-
-
Field Details
-
names
The names for the tag, anything that the tag can be referred to as.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getName
- Returns:
- A name that can be passed to
getByName(String)to retrieve this tag
-
getByName
Gets a tag by one of its names.- Parameters:
name- The name to search for.- Returns:
- The tag, if found, or null.
-
getAllNames
- Returns:
- All tag names.
-