Package net.runelite.api
Enum InstanceTemplates
- java.lang.Object
-
- java.lang.Enum<InstanceTemplates>
-
- net.runelite.api.InstanceTemplates
-
- All Implemented Interfaces:
Serializable
,Comparable<InstanceTemplates>
public enum InstanceTemplates extends Enum<InstanceTemplates>
An enumeration of possible instance templates and the area they occupy.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstanceTemplates
findMatch(int chunkData)
Matches chunk data of an instance to the instance it belongs.int
getBaseX()
The base x-axis coordinate of the instance area.int
getBaseY()
The base y-axis coordinate of the instance area.int
getHeight()
The height of the instance area.int
getPlane()
The plane the instance is on.int
getWidth()
The width of the instance area.static InstanceTemplates
valueOf(String name)
Returns the enum constant of this type with the specified name.static InstanceTemplates[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RAIDS_LOBBY
public static final InstanceTemplates RAIDS_LOBBY
-
RAIDS_START
public static final InstanceTemplates RAIDS_START
-
RAIDS_END
public static final InstanceTemplates RAIDS_END
-
RAIDS_SCAVENGERS
public static final InstanceTemplates RAIDS_SCAVENGERS
-
RAIDS_SHAMANS
public static final InstanceTemplates RAIDS_SHAMANS
-
RAIDS_VASA
public static final InstanceTemplates RAIDS_VASA
-
RAIDS_VANGUARDS
public static final InstanceTemplates RAIDS_VANGUARDS
-
RAIDS_ICE_DEMON
public static final InstanceTemplates RAIDS_ICE_DEMON
-
RAIDS_THIEVING
public static final InstanceTemplates RAIDS_THIEVING
-
RAIDS_FARMING
public static final InstanceTemplates RAIDS_FARMING
-
RAIDS_SCAVENGERS2
public static final InstanceTemplates RAIDS_SCAVENGERS2
-
RAIDS_MUTTADILES
public static final InstanceTemplates RAIDS_MUTTADILES
-
RAIDS_MYSTICS
public static final InstanceTemplates RAIDS_MYSTICS
-
RAIDS_TEKTON
public static final InstanceTemplates RAIDS_TEKTON
-
RAIDS_TIGHTROPE
public static final InstanceTemplates RAIDS_TIGHTROPE
-
RAIDS_FARMING2
public static final InstanceTemplates RAIDS_FARMING2
-
RAIDS_GUARDIANS
public static final InstanceTemplates RAIDS_GUARDIANS
-
RAIDS_VESPULA
public static final InstanceTemplates RAIDS_VESPULA
-
RAIDS_CRABS
public static final InstanceTemplates RAIDS_CRABS
-
-
Method Detail
-
values
public static InstanceTemplates[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InstanceTemplates c : InstanceTemplates.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InstanceTemplates valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
findMatch
public static InstanceTemplates findMatch(int chunkData)
Matches chunk data of an instance to the instance it belongs.- Parameters:
chunkData
- the chunk data- Returns:
- the instance the chunk is in
-
getBaseX
public int getBaseX()
The base x-axis coordinate of the instance area.
-
getBaseY
public int getBaseY()
The base y-axis coordinate of the instance area.
-
getPlane
public int getPlane()
The plane the instance is on.
-
getWidth
public int getWidth()
The width of the instance area.
-
getHeight
public int getHeight()
The height of the instance area.
-
-