Package net.risingworld.api.utils
Enum Class Crosshair
- All Implemented Interfaces:
Serializable
,Comparable<Crosshair>
,Constable
Crosshairs (visible in the center of the screen).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionChest crosshair (chest icon)Crosshair for context menu (circle with three dots)Crafting crosshair (small hammer icon)The default crosshairDoor crosshair (door icon)Fire crosshair (small fire icon)Latch iconAdd/mount crosshair (circle with + in it)Music iconCrossed out fire crosshairPickup crosshair (small hand icon)Recycle iconScissors iconSitting crosshair (chair icon)Sleeping crosshair (Zzz)Toilet iconTrashbin iconWheel crosshairWrite crosshair (pen icon) -
Method Summary
Modifier and TypeMethodDescriptionstatic Crosshair
getCrosshair
(byte id) Gets thecrosshair
which has the provided id.byte
getID()
Used internally.static Crosshair
Returns the enum constant of this class with the specified name.static Crosshair[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Default
The default crosshair -
Pickup
Pickup crosshair (small hand icon) -
Crafting
Crafting crosshair (small hammer icon) -
Context
Crosshair for context menu (circle with three dots) -
Sitdown
Sitting crosshair (chair icon) -
Door
Door crosshair (door icon) -
Scissors
Scissors icon -
Sleep
Sleeping crosshair (Zzz) -
Music
Music icon -
Mount
Add/mount crosshair (circle with + in it) -
Trash
Trashbin icon -
Recycle
Recycle icon -
Chest
Chest crosshair (chest icon) -
Toilet
Toilet icon -
Latch
Latch icon -
Write
Write crosshair (pen icon) -
Fire
Fire crosshair (small fire icon) -
NoFire
Crossed out fire crosshair -
Wheel
Wheel crosshair
-
-
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
-
getID
public byte getID()Used internally.- Returns:
- the crosshair id.
-
getCrosshair
Gets thecrosshair
which has the provided id.- Parameters:
id
- the id.- Returns:
- the according
Crosshair
.
-